You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm assuming you want the background to extend to the edge of the screen, but you don't want your content within the safe area. You can do that with a mask. For example, I've modified the demo app to use a mask that rounds the bottom corners and ignores the top safe area:
This produces the result below. Putting your content in the safe area would require overriding the safe area insets of MessageHostingView, which isn't currently supported. However, I'm adding something to make edge styling easier and may add support for that as well.
Activity
wtmoose commentedon Oct 7, 2023
Could you provide a screenshot + code that demonstrates the issue you're having?
xiaoxidong commentedon Oct 7, 2023
Just the SwiftUI demo project.
wtmoose commentedon Oct 7, 2023
I'm assuming you want the background to extend to the edge of the screen, but you don't want your content within the safe area. You can do that with a mask. For example, I've modified the demo app to use a mask that rounds the bottom corners and ignores the top safe area:
This produces the result below. Putting your content in the safe area would require overriding the safe area insets of
MessageHostingView
, which isn't currently supported. However, I'm adding something to make edge styling easier and may add support for that as well.Does this resolve your issue?
Address #529
xiaoxidong commentedon Oct 8, 2023
Great, Thank you so much.
Address SwiftKickMobile#529