Преглед изворни кода

Merge pull request #821 from MikePlante1/detent

Fix iOS 26.1 LoopStatusView Detent Issue
Mike Plante пре 6 месеци
родитељ
комит
0aceed0088
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      Trio/Sources/Modules/Home/View/Header/LoopStatusView.swift

+ 4 - 1
Trio/Sources/Modules/Home/View/Header/LoopStatusView.swift

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