Post

Replies

Boosts

Views

Activity

SwiftUI analogue of UIIViewController.isModalInPresentation
As of iOS 13 with the new card style default presentation of modal view controllers users can dismiss these with a downward swipe gesture by default. If this behaviour is not desired isModalInPresentation can be set to true to disable it. In SwiftUI the sheet modifier does not seem to expose this option and will always be dismissed. An alternative is to use fullScreenCover — but this loses the card effect. Is there an option to prevent dismissing SwiftUI sheets using the gesture mentioned?
2
0
1.6k
Jun ’21
What is a Location Push Service Extension?
There's new API and some header documentation for "Location Push Service Extension"s. I haven't seen any sessions related to Core Location scheduled beyond Meet the Location Button Is there any documentation for this I have missed?
Replies
4
Boosts
0
Views
5.6k
Activity
Feb ’22
SwiftUI analogue of UIIViewController.isModalInPresentation
As of iOS 13 with the new card style default presentation of modal view controllers users can dismiss these with a downward swipe gesture by default. If this behaviour is not desired isModalInPresentation can be set to true to disable it. In SwiftUI the sheet modifier does not seem to expose this option and will always be dismissed. An alternative is to use fullScreenCover — but this loses the card effect. Is there an option to prevent dismissing SwiftUI sheets using the gesture mentioned?
Replies
2
Boosts
0
Views
1.6k
Activity
Jun ’21