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
let rx_request = Observable<Value>.create { (observer) -> Disposable in | |
let requestReference = Alamofire.request(.POST, url, parameters: payload) | |
.responseJSON(completionHandler: { (response) in | |
if let value = response.result.value { | |
observer.onNext(value) | |
observer.onCompleted() | |
}else if let error = response.result.error { | |
observer.onError(error) | |
} | |
}) |
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
extension UITabBarController { | |
/** | |
Show or hide the tab bar. | |
- Parameter hidden: `true` if the bar should be hidden. | |
- Parameter animated: `true` if the action should be animated. | |
- Parameter transitionCoordinator: An optional `UIViewControllerTransitionCoordinator` to perform the animation | |
along side with. For example during a push on a `UINavigationController`. | |
*/ |