Last active
June 21, 2017 04:49
-
-
Save HelloCore/9af9c745baebc1a8eb8e02be9b54ad34 to your computer and use it in GitHub Desktop.
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
UIDevice.rx.orientation | |
.filter { value in | |
return value != .landscape | |
} | |
.map { _ in | |
return "Portrait is the best!" | |
} | |
.subscribe(onNext: { (string) in | |
showAlert(text: string) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment