-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Sheet dismissal after 1.19 without @Observable #3749
Copy link
Copy link
Open
Labels
2.0Related to our 2.0 release.Related to our 2.0 release.bugSomething isn't working due to a bug in the library.Something isn't working due to a bug in the library.deprecatedThis issue affects tools that have been deprecated and modern tools work around the problemThis issue affects tools that have been deprecated and modern tools work around the problem
Metadata
Metadata
Assignees
Labels
2.0Related to our 2.0 release.Related to our 2.0 release.bugSomething isn't working due to a bug in the library.Something isn't working due to a bug in the library.deprecatedThis issue affects tools that have been deprecated and modern tools work around the problemThis issue affects tools that have been deprecated and modern tools work around the problem
Description
After updating to
1.19and everyone version in-between up to the latest1.21.1we have had a bug where using the@Dependency(\.dismiss)effect has been causing a glitch animation on dismissal. If the sheet is dismissed by tapping outside of the sheet the bug does not occur.It seems to be caused by a combination of factors:
.sheet(store:)v1.19.0or abovepresentationDetentsAt the moment we are unable to update our project to use
@Observableso we are still relying onViewStore.I've found a thread with another user that has the same issue
https://pointfreecommunity.slack.com/archives/C04KQQ7NXHV/p1746103346575989
I've also attached a project that reproduces the issue.
Checklist
mainbranch of this package.Expected behavior
The sheet to be dismissed without being presented in full initially.
Actual behavior
The sheet seems to be presented in full before dismissal, I've also slowed down animations on the Simulator in order to see it better.
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-08-11.at.15.39.15.mp4
Reproducing project
sheet.zip
The Composable Architecture version information
1.21.1
Destination operating system
iOS 18.5
Xcode version information
16.4
Swift Compiler version information