ScalingHeaderScrollView
ScalingHeaderScrollView copied to clipboard
Issues when presented as .pageSheet
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:
@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).

Let me know if I can help further.
Hey @adamdahan, could you please share a code of how you create this image? If you are using Nuke it might be because of that...