mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
glass effect compat
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// Created by neon443 on 06/06/2025.
|
||||
//
|
||||
|
||||
VERSION = 1.8
|
||||
BUILD = 58
|
||||
VERSION = 1.10
|
||||
BUILD = 186
|
||||
|
||||
// Configuration settings file format documentation can be found at:
|
||||
// https://developer.apple.com/documentation/xcode/adding-a-build-configuration-file-to-your-project
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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