I can display a sheet with a custom height with detents in SwiftUI like this.
.sheet(isPresented: $showSheet) {
MySheet()
presentationDetents([.height(500), .large])
}
Is there a way that I can measure the exact height of my view MySheet
and pass this to presentationDetents
without having a fixed value? I ask because based on the user's accessibility settings the height of the view could change.