Skip to content

Instantly share code, notes, and snippets.

@MoussaHellal
Last active February 24, 2020 14:13
Show Gist options
  • Save MoussaHellal/0752eb9060ebae94c6b8d73a92410532 to your computer and use it in GitHub Desktop.
Save MoussaHellal/0752eb9060ebae94c6b8d73a92410532 to your computer and use it in GitHub Desktop.
class MainViewController: UIViewController {
@IBOutlet weak var changeButton: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
}
@IBAction func changeButtonDidTapped(_ sender: Any) {
let chooseVC = storyboard?.instantiateViewController(identifier: "chooseVC") as! ChooseViewController
chooseVC.modalPresentationStyle = .fullScreen
self.present(chooseVC, animated: true, completion: nil)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment