-
Notifications
You must be signed in to change notification settings - Fork 7
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
switch Toggle will adjust sheet from large to medium #3
Comments
Mind the parameter and documentation for it:
Since you don't specify Create a
|
But I can agree that it's a good addition to the library to handle that automatically in case when there is 2 and more supported detents but no binding is provided. I'll add the fix for this. |
As too often: had not reading the documentation carefully, sorry for that. Now I am using a state var for selectedDetentIdentifier and it works like a charm. Thank you for your advice 😀 I also tried the new version but did not notice any new behaviour, when I do not provide a state var for the selectedDetentIdentifier, i.e. it is nil. |
I haven't released the new version with the fix yet. Stay tuned 🙂 |
…ser's chosen detent is now never overwritten.
Hi,
first of all: thank you for this great project.
I discovered an issue I cannot explain me: I created a sheet with medium and large detent with the following code:
I inserted some Toggles in a List to the sheet. If the sheet is pulled up to the large detent and I switch one toggle, the current detent of the sheet will immediately changed to medium. This does not happen with other controls like Buttons. Could this be a problem with Toggles because their toggle status has to be published and the whole view will be redrawn, i.e. the sheet will drawn in its start detent? Or could you imagine another reason for this behaviour?
Best regards,
Christoph
The text was updated successfully, but these errors were encountered: