|
@@ -129,7 +129,11 @@ struct LoopStatusView: View {
|
|
|
.onAppear {
|
|
.onAppear {
|
|
|
lastDetermination = state.determinationsFromPersistence.first
|
|
lastDetermination = state.determinationsFromPersistence.first
|
|
|
}
|
|
}
|
|
|
- .presentationDetents([.height(sheetContentHeight)])
|
|
|
|
|
|
|
+ .presentationDetents([
|
|
|
|
|
+ sheetContentHeight > 0
|
|
|
|
|
+ ? .height(sheetContentHeight)
|
|
|
|
|
+ : .fraction(0.9)
|
|
|
|
|
+ ])
|
|
|
.presentationDragIndicator(.visible)
|
|
.presentationDragIndicator(.visible)
|
|
|
.onPreferenceChange(ContentSizeKey.self) { newSize in
|
|
.onPreferenceChange(ContentSizeKey.self) { newSize in
|
|
|
sheetContentHeight = newSize.height
|
|
sheetContentHeight = newSize.height
|