Post

Replies

Boosts

Views

Activity

Comment on Offset on tap items when reopening app with a sheet open
Ah my bad—that usage of an enum named Sheet to represent the possible sheets is specific to my case. I should have used a simpler example to explain how to use this. In the conventional case of using @State var showingSheet: Bool = false, you would then have something like func showingSheetChanged(to newValue: Bool) { TapTargetResetLayer.presentedSheetChanged(toDismissed: newValue == false) }. The point being to let it know when the sheet dismisses so it can do its thing.
Apr ’23