LTModalViewController 2.0.4

LTModalViewController 2.0.4

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Mar 2020
SPMSupports SPM

Maintained by Ftkey, Joey.



  • By
  • Ftkey

LTModalViewController

LTModalViewController a easy way to display modal style controller

Version Platform Carthage compatible License

    @IBAction func onAlert(sender: AnyObject) {
        let rootVc = UIStoryboard(name: "Main", bundle: nil).instantiateViewControllerWithIdentifier("ModalController")
        self.presentViewController(ModalViewController(rootController:rootVc ,contentSize:CGSizeMake(320, 200),radius:8, style:.Alert), animated: true, completion: nil)
        
    }
    @IBAction func onActionSheet(sender: AnyObject) {
        let rootVc = UIStoryboard(name: "Main", bundle: nil).instantiateViewControllerWithIdentifier("ModalController")
        self.presentViewController(ModalViewController(rootController:rootVc ,contentSize:CGSizeMake(320, 200), style:.ActionSheet), animated: true, completion: nil)
        
    }

DEMO