Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Add .bottomSheet(item: Binding<Optional<T>>) modifier #1

Merged
merged 10 commits into from Jun 19, 2021

Conversation

chFlorian
Copy link
Contributor

This PR adds the second overload of standard sheets: A binding to an optional item, that presents the sheet if the item is not nil.

I would have liked to also change the contentView closure to take in the item (unwrapped), but that would have meant rewriting a lot of other code, which I think would overcomplicate things.

@adamfootdev adamfootdev merged commit 27c87d0 into adamfootdev:main Jun 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants