Latest 0.2.0
Homepage https://github.com/akinogunc/xModalController
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

xModalController

Installation

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

pod 'xModalController'

How to use

First import the module

import xModalController

You can show your modal like this

//initialize your view controller
let modalVc = MyViewController()

//set a frame for it
let modalFrame = CGRect(x: 20, y: 300, width: self.view.bounds.width - 40, height: 300)

//initialize the xModalController
let modalController = xModalController(parentViewController: self, modalViewController: modalVc, modalFrame: modalFrame)

//show your view controller
modalController.showModal()

Author

akinogunc, [email protected]

License

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

Latest podspec

{
    "name": "xModalController",
    "version": "0.2.0",
    "summary": "xModalController helps you present custom sized modal view controllers.",
    "swift_version": "4.1",
    "description": "You can show any sized modal views with xModalController. It uses Apple's default modal animation.",
    "homepage": "https://github.com/akinogunc/xModalController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "akinogunc": "[email protected]"
    },
    "source": {
        "git": "https://github.com/akinogunc/xModalController.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "xModalController/Classes/**/*"
}

Pin It on Pinterest

Share This