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()
present(vc, type: .modal(.withNavigation, .formSheet, .coverVertical))
Pushing a view controller
let vc = MyViewController()
present(vc, type: .push)
Presenting as a popover
let vc = MyViewController()
let config = PopoverConfig(source: .barButtonItem(item), delegate: self)
present(vc, type: .popover(config))
Dismissing a view controller
dismiss()