glass effect compat

This commit is contained in:
neon443 committed 2025-09-24 12:29:21 +01:00
1 parent 37e2165725
commit 5132b4f69c
3 files changed
+14 -3

No files matched your search

+2 -1
View File
@@ -23,7 +23,8 @@ struct HostSymbolPicker: View {
var body: some View {
ZStack {
Rectangle()
.foregroundStyle(cScheme == .dark ? .black : .gray)
.modifier(glassEffectCompat())
// .foregroundStyle(cScheme == .dark ? .black : .gray)
VStack(alignment: .center, spacing: 0) {
ScrollView(.horizontal) {
HStack {
+10
View File
@@ -8,6 +8,16 @@
import Foundation
import SwiftUI
struct glassEffectCompat: ViewModifier {
func body(content: Content) -> some View {
if #available(iOS 19, *) {
content.glassEffect()
} else {
content
}
}
}
struct glassButton: ViewModifier {
var prominent: Bool
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.