Skip to content

squarefrog/LTModalViewController

 
 

Repository files navigation

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

About

LTModalViewController a easy way to display modal style controller -- (Swift & Objc)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 95.1%
  • Ruby 4.9%