Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please declare public "override func viewWillLayoutSubviews()" as open in HostingParentController #3

Open
GerdC opened this issue Aug 6, 2023 · 0 comments

Comments

@GerdC
Copy link

GerdC commented Aug 6, 2023

In my class that inherits from HostingParentController, I'd like to override func viewWillLayoutSubviews(), too.

What do you think about changing the HostingParentController code to

    open override func viewWillLayoutSubviews() {
        super.viewWillLayoutSubviews()
        
        let capturer = view as! HostingParentView
        capturer.makeBackgroundsClear = makeBackgroundsClear
        capturer.forwardBaseTouchesTo = forwardBaseTouchesTo
        capturer.ignoreTouchesOnSwiftUIScrollView = ignoreTouchesOnSwiftUIScrollView
    }

replacing public with open?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant