Latest1.0.1
Homepagehttps://github.com/josuemeza/ScreenOrientationManager
LicenseMIT
Platformsios 10.0
Authors

CI Status
Version
License
Platform

Example

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

Requirements

Installation

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

pod 'ScreenOrientationManager'

Setup

Add ScreenOrientationManager to listen any screen orientation change.
Add this extension on your project or directly add the method on AppDelegate class.

extension AppDelegate {

    func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
        return ScreenOrientationManager.singleton.orientation
    }

}

Author

Josue Meza Peña, [email protected]

License

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

Latest podspec

{
    "name": "ScreenOrientationManager",
    "version": "1.0.1",
    "summary": "Manager for iOS device screen orientation.",
    "swift_version": "3.2",
    "description": "Manager to set up behavior of screen orientation on running app, allowing to set a specific orientation or autorotation.",
    "homepage": "https://github.com/josuemeza/ScreenOrientationManager",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Josue Meza Penu0303a": "[email protected]"
    },
    "source": {
        "git": "https://github.com/josuemeza/ScreenOrientationManager.git",
        "tag": "1.0.1"
    },
    "platforms": {
        "ios": "10.0"
    },
    "documentation_url": "http://josuemeza.com/pods/ScreenOrientationManager/",
    "source_files": "ScreenOrientationManager/Classes/**/*"
}

Pin It on Pinterest

Share This