Warn users about incoming iOS 13 support drop.

This commit is contained in:
Stefan Ceriu
2022-04-12 09:39:26 +03:00
committed by Stefan Ceriu
parent 5dcf44aead
commit 2a4b27e049
2 changed files with 4 additions and 3 deletions
@@ -18,8 +18,8 @@ import Foundation
class VersionCheckCoordinator: Coordinator, VersionCheckBannerViewDelegate, VersionCheckAlertViewControllerDelegate {
private enum Constants {
static let osVersionToBeDropped = 11
static let hasOSVersionBeenDropped = true
static let osVersionToBeDropped = 13
static let hasOSVersionBeenDropped = false
static let supportURL = URL(string: "https://support.apple.com/en-gb/guide/iphone/iph3e504502/ios")
}
@@ -52,7 +52,7 @@ class VersionCheckCoordinator: Coordinator, VersionCheckBannerViewDelegate, Vers
func start() {
let majorOSVersion = ProcessInfo().operatingSystemVersion.majorVersion
guard majorOSVersion < Constants.osVersionToBeDropped else {
guard majorOSVersion <= Constants.osVersionToBeDropped else {
return
}