Latest 0.1.4
Homepage https://github.com/lm2343635/RxOrientation
License MIT
Platforms ios 8.0
Dependencies RxSwift, RxCocoa
Authors

CI Status
Version
License
Platform

RxOrientation is a screen orientation notification extension for RxSwift, which transforms the state of screen orientation notifications into RxSwift Observables.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

RxOrientation is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'RxOrientation'

In your view model class or view controller class, using UIDevice.current.rx.orientation to get the current device orientaion and UIApplication.shared.rx.statusBarOrientation to get the status bar orientaion.

UIApplication.shared.rx.statusBarOrientation.subscribe(onNext: { orientaion in
    // ...
}).disposed(by: disposeBag)

Author

lm2343635, [email protected]

License

RxOrientation is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "RxOrientation",
    "version": "0.1.4",
    "summary": "Screen orientation notification extension for RxSwift.",
    "description": "RxOrientation is a screen orientation notification extension for RxSwift, which transforms the state of screen orientation notifications into RxSwift Observables.",
    "homepage": "https://github.com/lm2343635/RxOrientation",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "lm2343635": "[email protected]"
    },
    "source": {
        "git": "https://github.com/lm2343635/RxOrientation.git",
        "tag": "0.1.4"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "RxOrientation/Classes/**/*",
    "dependencies": {
        "RxSwift": [
            "~> 5"
        ],
        "RxCocoa": [
            "~> 5"
        ]
    }
}

Pin It on Pinterest

Share This