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