Skip to content

Commit

Permalink
Warn users about incoming iOS 13 support drop.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanceriu committed Apr 12, 2022
1 parent 5ba0ea7 commit c4b4a33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Riot/Modules/Home/VersionCheck/VersionCheckCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down Expand Up @@ -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
}

Expand Down
1 change: 1 addition & 0 deletions changelog.d/pr-6024.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Warn users about incoming iOS 12 and 13 support drop.

0 comments on commit c4b4a33

Please sign in to comment.