mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Warn users about incoming iOS 13 support drop.
This commit is contained in:
parent
5ba0ea74c0
commit
c4b4a33ffb
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
|
||||
}
|
||||
|
||||
|
|
1
changelog.d/pr-6024.misc
Normal file
1
changelog.d/pr-6024.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Warn users about incoming iOS 12 and 13 support drop.
|
Loading…
Reference in a new issue