mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 05:19:13 +00:00
glass effect compat
This commit is contained in:
@@ -5,8 +5,8 @@
|
|||||||
// Created by neon443 on 06/06/2025.
|
// Created by neon443 on 06/06/2025.
|
||||||
//
|
//
|
||||||
|
|
||||||
VERSION = 1.8
|
VERSION = 1.10
|
||||||
BUILD = 58
|
BUILD = 186
|
||||||
|
|
||||||
// Configuration settings file format documentation can be found at:
|
// Configuration settings file format documentation can be found at:
|
||||||
// https://developer.apple.com/documentation/xcode/adding-a-build-configuration-file-to-your-project
|
// 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 {
|
var body: some View {
|
||||||
ZStack {
|
ZStack {
|
||||||
Rectangle()
|
Rectangle()
|
||||||
.foregroundStyle(cScheme == .dark ? .black : .gray)
|
.modifier(glassEffectCompat())
|
||||||
|
// .foregroundStyle(cScheme == .dark ? .black : .gray)
|
||||||
VStack(alignment: .center, spacing: 0) {
|
VStack(alignment: .center, spacing: 0) {
|
||||||
ScrollView(.horizontal) {
|
ScrollView(.horizontal) {
|
||||||
HStack {
|
HStack {
|
||||||
|
|||||||
@@ -8,6 +8,16 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
|
struct glassEffectCompat: ViewModifier {
|
||||||
|
func body(content: Content) -> some View {
|
||||||
|
if #available(iOS 19, *) {
|
||||||
|
content.glassEffect()
|
||||||
|
} else {
|
||||||
|
content
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
struct glassButton: ViewModifier {
|
struct glassButton: ViewModifier {
|
||||||
var prominent: Bool
|
var prominent: Bool
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user