Parcourir la source

Merge pull request #821 from MikePlante1/detent

Fix iOS 26.1 LoopStatusView Detent Issue
Mike Plante il y a 6 mois
Parent
commit
0aceed0088
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  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