ScalingHeaderScrollView icon indicating copy to clipboard operation
ScalingHeaderScrollView copied to clipboard

Issues when presented as .pageSheet

Open adamdahan opened this issue 3 years ago • 1 comments

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). Simulator Screen Recording - iPhone 13 - 2022-06-08 at 10 19 46

Let me know if I can help further.

adamdahan avatar Jun 08 '22 14:06 adamdahan

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...

f3dm76 avatar Jul 15 '22 06:07 f3dm76