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

customize the height #417

Open
wish-pig opened this issue Jul 26, 2023 · 0 comments
Open

customize the height #417

wish-pig opened this issue Jul 26, 2023 · 0 comments

Comments

@wish-pig
Copy link

If you customize the height, you need to add the height of the spacerView here, otherwise the height is incorrect, and the height setting of the spacerView is not publicly available.

public var bannerHeight: CGFloat { get { if let customBannerHeight = customBannerHeight { return customBannerHeight } else if shouldAdjustForDynamicIsland() { return 104.0 } else if shouldAdjustForNotchFeaturedIphone() { return 88.0 } else { return 64.0 + heightAdjustment } } set { customBannerHeight = newValue } }

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