This file contains 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
override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { | |
guard let items = items else { | |
return 0 | |
} | |
return items.count | |
} | |
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { | |
guard let item = items?[indexPath.row] else { |
This file contains 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
override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { | |
guard let items = items else { | |
return 0 | |
} | |
return items.count | |
} | |
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { | |
guard let item = items?[indexPath.row] else { |
This file contains 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
import Alamofire | |
import RxAlamofire | |
extension Alamofire.Request { | |
public func logRequest() -> Self { | |
print(terminator:"\n") | |
print("🚀 REQUEST: \(self.request!.URL!)", terminator:"\n") | |
debugPrint(self, terminator:"\n\n") | |
_ = rx_responseJSON() |