mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-16 04:20:30 +00:00
actually check the installed os version now
This commit is contained in:
parent
7285e41654
commit
696ad4cef7
1 changed files with 9 additions and 9 deletions
|
|
@ -646,15 +646,15 @@ struct LoadingView: View {
|
|||
.onAppear {
|
||||
animate = true
|
||||
|
||||
// iOS Version Check: if the device is running iOS lower than 17.4,
|
||||
// set the alert bindings so that the alert is shown.
|
||||
if #unavailable(iOS 17.4) {
|
||||
alertTitle = "Unsupported OS Version"
|
||||
alertMessage = "StikJIT only supports iOS/iPadOS 17.4 and above.\nYou're running an older version."
|
||||
showAlert = true
|
||||
}
|
||||
}
|
||||
|
||||
let os = ProcessInfo.processInfo.operatingSystemVersion
|
||||
if os.majorVersion < 17 || (os.majorVersion == 17 && os.minorVersion < 4) {
|
||||
// Show alert for unsupported host iOS version
|
||||
alertTitle = "Unsupported OS Version"
|
||||
alertMessage = "StikJIT only supports 17.4 and above. Your device is running iOS/iPadOS \(os.majorVersion).\(os.minorVersion).\(os.patchVersion)"
|
||||
showAlert = true
|
||||
}
|
||||
}
|
||||
|
||||
Text("Loading...")
|
||||
.font(.system(size: 20, weight: .medium, design: .rounded))
|
||||
.foregroundColor(isDarkMode ? .white.opacity(0.8) : .black.opacity(0.8))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue