Minor fixes

This commit is contained in:
世界
2025-12-13 19:30:33 +08:00
parent 14c0b34368
commit 9be752ea94
7 changed files with 62 additions and 18 deletions
@@ -5,7 +5,7 @@ public extension View {
func presentationDetentsIfAvailable() -> some View {
#if os(iOS) || os(tvOS)
if #available(iOS 16.0, tvOS 17.0, *) {
self.presentationDetents([.large])
presentationDetents([.large])
.presentationDragIndicator(.visible)
} else {
self
@@ -31,7 +31,7 @@ public extension View {
ActionButtonWrapper { self }
#else
if #available(iOS 26.0, macOS 26.0, *) {
self.frame(width: 44, height: 32)
frame(width: 44, height: 32)
.glassEffect(.regular.interactive(), in: .rect(cornerRadius: 8))
} else {
frame(width: 44, height: 32)