Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

About the deprecated notice #14

Closed
austincondiff opened this issue Oct 21, 2022 · 1 comment
Closed

About the deprecated notice #14

austincondiff opened this issue Oct 21, 2022 · 1 comment

Comments

@austincondiff
Copy link

This library will be deprecated, due to the new SwiftUI 4 custom sheet size capabilities. Since this functionality will be added to SwiftUI, this library is no longer needed.

In SwiftUI 4, you can use the new presentationDetents view modifier to define custom sheet sizes. You can also make sheets non-dismissable, hide the resize handle, etc.

I get it, but to my knowledge it isn't possible to interact with the background and hide the scrim behind the sheet. If this is required, is this library still a good fit or am I missing something?

@danielsaidi
Copy link
Owner

danielsaidi commented Oct 21, 2022

Hi @austincondiff

There is no native way to hide the dimmed background in SwiftUI just yet, but I've created a view modifier that does this, that you can use instead of presentationDetents.

I write more about it here:
https://danielsaidi.com/blog/2022/06/21/undimmed-presentation-detents-in-swiftui

You can grab the view modifier from here:
https://github.com/danielsaidi/SwiftUIKit/

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

No branches or pull requests

2 participants