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 5ba0ea74c0
commit c4b4a33ffb
2 changed files with 4 additions and 3 deletions

View file

@ -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
}

1
changelog.d/pr-6024.misc Normal file
View file

@ -0,0 +1 @@
Warn users about incoming iOS 12 and 13 support drop.