xModalController is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'xModalController'
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()
akinogunc, akinogunc@gmail.com
xModalController is available under the MIT license. See the LICENSE file for more info.