What's new in SwiftUI

RSS for tag

Discuss the WWDC22 Session What's new in SwiftUI

Posts under wwdc2022-10052 tag

3 Posts
Sort by:
Post marked as solved
6 Replies
3.0k Views
I would like to include the bottom sheet from the iPhone "find my" and "maps" app in my app. During my research I came across the new modifier .presentationDetents for sheets. The only problem here is that you can no longer interact with the main screen when the sheet is active. In my app, however, I would like the sheet to be active all the time like in the iPhone apps mentioned and that you can still interact with the main screen like in the iPhone apps with the map. I would be very happy about help. Greetings
Posted Last updated
.
Post not yet marked as solved
1 Replies
634 Views
I am trying to get mixed-state toggles and pickers to work. I have watched the session (the discussion starts around 17:55). I have copied the example code from the session and I get the same compile error I get with my own code: Cannot convert value of type '[Binding]' to expected argument type 'Binding' I also can not find a Toggle init that is specialized for a Sequence or Array of bindings to values. Did this SwiftUI feature get cut? Has anyone got this working? Any help is greatly appreciated.
Posted Last updated
.
Post not yet marked as solved
3 Replies
2.3k Views
Is it possible to use create a "nonmodal sheet" as described in the Human Interface Guidelines and as seen in apps like Maps using SwiftUI's .sheet and the new .presentationDetents modifier in iOS 16. By default, the content behind the sheet is not interactive. Is there a built in modifier or modality style that can be applied to the sheet to allow for interactive content behind the sheet?
Posted Last updated
.