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
VERSION = 5
NAME = Near Future
BUILD_NUMBER = 1
BUILD_NUMBER = 18

View File

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