Post

Replies

Boosts

Views

Activity

Comment on Sheets no longer open when button is tapped while popover is visible
You didn't mention "more complex circumstances", so I offered an opinion on the example you gave. I created a project with your code, made my adjustments, and didn't see the error. Why would closing a popover automatically set the sheet's State var to false? It's a separate control, and that's what was causing your error. Closing a popover will set the popover State var to false, but not a separate control which just happens to be open and true at the time the popover was opened.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’24
Comment on Scale app for coffee and small dishes
It won't happen because it would have to be hardware-based. You can't just put something on a screen and expect it to know how much that thing weighs without there being some hardware that can detect the weight of the item. Apple won't add that hardware for such use cases. It would be too expensive, and not many people would use it (well, drug dealers might).
Jul ’24