fix stuff for GM seed building

(cant use xcode beta to sumbit to appstore smh)
and bump version
This commit is contained in:
neon443
2025-06-19 10:23:17 +01:00
parent c393404fec
commit 3690a9e4d2
2 changed files with 16 additions and 30 deletions

View File

@@ -14,4 +14,4 @@ BUNDLE_ID_WIDGETS = com.neon443.NearFuture.widgets
GROUP_ID = group.NearFuture GROUP_ID = group.NearFuture
VERSION = 5 VERSION = 5
NAME = Near Future NAME = Near Future
BUILD_NUMBER = 1 BUILD_NUMBER = 18

View File

@@ -8,51 +8,37 @@
import Foundation import Foundation
import SwiftUI import SwiftUI
struct hapticHeavy: ViewModifier { extension View {
var trigger: any Equatable func hapticHeavy(trigger: any Equatable) -> some View {
init(trigger: any Equatable) {
self.trigger = trigger
}
func body(content: Content) -> some View {
if #available(iOS 17, *) { if #available(iOS 17, *) {
content self.modifier(sensoryFeedback(.impact(weight: .heavy, intensity: 1), trigger: trigger)) as! Self
.sensoryFeedback(.impact(weight: .heavy, intensity: 1), trigger: trigger)
} else { } else {
content self
} }
} }
} }
struct glassButton: ViewModifier { struct glassButton: ViewModifier {
func body(content: Content) -> some View { func body(content: Content) -> some View {
if #available(iOS 19, macOS 16, *) { #if swift(>=6.2)
content.buttonStyle(.glass) content.buttonStyle(.glass)
} else { #else
content.buttonStyle(.borderedProminent) content.buttonStyle(.borderedProminent)
.clipShape(RoundedRectangle(cornerRadius: 15)) .clipShape(RoundedRectangle(cornerRadius: 15))
.tint(.two) .tint(.two)
} #endif
} }
} }
struct hapticSuccess: ViewModifier { extension View {
var trigger: any Equatable func hapticSucess(trigger: any Equatable) -> some View {
init(trigger: any Equatable) {
self.trigger = trigger
}
func body(content: Content) -> some View {
if #available(iOS 17, *) { if #available(iOS 17, *) {
content.sensoryFeedback(.success, trigger: trigger) self.modifier(sensoryFeedback(.success, trigger: trigger)) as! Self
} else { } else {
content self
} }
} }
} }
struct navigationInlineLarge: ViewModifier { struct navigationInlineLarge: ViewModifier {
func body(content: Content) -> some View { func body(content: Content) -> some View {
#if os(macOS) #if os(macOS)