Questions tagged [detent]

2 questions
0
votes
0 answers

Presenting a modal as a bottom sheet with a segue

I would like to present a detail view (VC2) as a modal over the bottom half of a parent view (VC1). I need to use a segue to enable a callback. I can see that a modal sheet can be presented in this way but can only find examples using…
Jim Burke
  • 251
  • 3
  • 14
0
votes
1 answer

How to freeze detent / disable user interaction to prevent it from changing? in swift UIKit

I have a detent set in my VC, as a swip-panel on another ViewController (anotherVC) and in certain situations I want to freeze \ disable it from moving up and down... func viewDidLoad() { if let sheet = anotherVC.sheetPresentationController { …