swift 6 migration complete

This commit is contained in:
neon443
2025-06-23 20:10:54 +01:00
parent 899304833c
commit 9841574d37
5 changed files with 48 additions and 41 deletions

View File

@@ -496,6 +496,7 @@ func getBuildID() -> String {
return "\(build)"
}
@MainActor
func getDevice() -> (sf: String, label: String) {
#if canImport(UIKit)
let asi = ProcessInfo().isiOSAppOnMac

View File

@@ -18,6 +18,7 @@ struct NFSettings: Codable, Equatable {
var prevAppVersion: String = getVersion()+getBuildID()
}
@MainActor
class SettingsViewModel: ObservableObject {
@Published var settings: NFSettings = NFSettings()
@@ -36,7 +37,7 @@ class SettingsViewModel: ObservableObject {
"pink"
]
@Published var device: (sf: String, label: String)
@Published var device: (sf: String, label: String) = ("", "")
init(load: Bool = true) {
self.device = getDevice()