Neat library, thanks for building it. I found some issues with the implementation. If you have a UIKit based app and want to present one of the examples inside of a nav with a modelPresentationStyle of .pageSheet with code like this:
@objc func presentOnboarding() {
let onboardingViewController = UIHostingController(rootView: OnboardingView())
let nav = UINavigationController(rootViewController: onboardingViewController)
nav.modalPresentationStyle = .pageSheet
if let sheet = nav.sheetPresentationController {
sheet.detents = [.medium(), .large()]
}
present(nav, animated: true, completion: nil)
}
You get this result (this is based off your ColorScalingHeader example).
Hi all,
Neat library, thanks for building it. I found some issues with the implementation. If you have a UIKit based app and want to present one of the examples inside of a nav with a modelPresentationStyle of .pageSheet with code like this:
You get this result (this is based off your
ColorScalingHeader
example).Let me know if I can help further.