add settings on mac

add whats new on mac
clean up settings on ios
clean up whats new + liquid glass
This commit is contained in:
neon443
2025-06-13 21:28:37 +01:00
parent 6e7bc6c2d1
commit 0663ba9e59
9 changed files with 210 additions and 44 deletions

View File

@@ -25,6 +25,17 @@ struct hapticHeavy: ViewModifier {
}
}
struct glassButton: ViewModifier {
func body(content: Content) -> some View {
if #available(iOS 19, macOS 16, *) {
content.buttonStyle(.glass)
} else {
content.buttonStyle(.borderedProminent)
.clipShape(RoundedRectangle(cornerRadius: 15))
}
}
}
struct hapticSuccess: ViewModifier {
var trigger: any Equatable