Skip to content

Instantly share code, notes, and snippets.

View Abhishek-NickelFox's full-sized avatar
🎯
Focusing

Abhishek Thapliyal Abhishek-NickelFox

🎯
Focusing
  • NickelFox
  • Noida
View GitHub Profile
@barbietunnie
barbietunnie / modal-view.md
Last active November 3, 2022 10:04
Swift Modal View Controller with transparent background

You can do it like this:

In your main view controller:

func showModal() {
    let modalViewController = ModalViewController()
    modalViewController.modalPresentationStyle = .OverCurrentContext
    presentViewController(modalViewController, animated: true, completion: nil)
}