Getting Started
This guide provides a brief overview for how to get started using PresenterKit
.
import PresenterKit
- Watch the talk
- Read the blog post
- Run the example project
Presenting a view controller modally
let vc = MyViewController()
presentController(vc, type: .modal(.withNavigation, .formSheet, .coverVertical))
Pushing a view controller
let vc = MyViewController()
presentController(vc, type: .push)
Presenting as a popover
let vc = MyViewController()
let config = PopoverConfig(source: .barButtonItem(item), delegate: self)
presentController(vc, type: .popover(config))
Dismissing a view controller
dismissController()