Remove presentationDetents as default is already large (#826)

This commit is contained in:
Islam 2025-10-19 10:16:57 +01:00 committed by GitHub
parent 40e54a5120
commit 3f00cf9467
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 0 additions and 18 deletions

View File

@ -188,10 +188,6 @@ struct ContentView: View {
)
) {
peopleSheetView
#if os(iOS)
.presentationDetents([.large])
.presentationDragIndicator(.visible)
#endif
}
.sheet(isPresented: $showAppInfo) {
AppInfoView()
@ -223,8 +219,6 @@ struct ContentView: View {
}
}
}
.presentationDetents([.large])
.presentationDragIndicator(.hidden)
.ignoresSafeArea()
}
#endif

View File

@ -240,8 +240,6 @@ struct FingerprintView: View {
.padding()
.frame(maxWidth: .infinity, maxHeight: .infinity)
.background(backgroundColor)
.presentationDetents([.large])
.presentationDragIndicator(.visible)
}
private func formatFingerprint(_ fingerprint: String) -> String {

View File

@ -125,9 +125,6 @@ struct LocationChannelsSheet: View {
.navigationTitle("")
#endif
}
#if os(iOS)
.presentationDetents([.large])
#endif
#if os(macOS)
.frame(minWidth: 420, minHeight: 520)
#endif

View File

@ -78,9 +78,6 @@ struct LocationNotesView: View {
.navigationTitle("")
#endif
}
#if os(iOS)
.presentationDetents([.large])
#endif
.background(backgroundColor)
.onDisappear { manager.cancel() }
.onChange(of: geohash) { newValue in

View File

@ -388,10 +388,6 @@ struct VerificationSheetView: View {
.padding(.vertical, 14)
}
.background(backgroundColor)
#if os(iOS)
.presentationDetents([.large])
.presentationDragIndicator(.visible)
#endif
.onDisappear { showingScanner = false }
}
}