This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension UITableView { | |
func animatedInsert(indexPaths paths: [NSIndexPath], withRowAnimation animation: UITableViewRowAnimation = .Automatic) { | |
guard paths.isEmpty == false else { return } | |
beginUpdates() | |
insertRowsAtIndexPaths(paths, withRowAnimation: animation) | |
endUpdates() | |
} | |
func animatedlReload(indexPaths paths: [NSIndexPath], withRowAnimation animation: UITableViewRowAnimation = .Automatic) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol AssetLoadable { | |
var rawValue: String { get } | |
func imageNamed() -> String | |
} | |
extension AssetLoadable { | |
func imageNamed() -> String { | |
return rawValue | |
} |
NewerOlder