mirror of
https://github.com/neon443/NearFuture.git
synced 2026-03-11 06:49:12 +00:00
fix stuff for GM seed building
(cant use xcode beta to sumbit to appstore smh) and bump version
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user