Created
November 13, 2020 14:22
-
-
Save sayler8182/59e85b2f5a817f5e0a2b2ddbef9eee16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: UpdatesStatus | |
public enum UpdatesStatus { | |
case newVersion(_ version: Version) | |
case noChanges | |
case postponed | |
case undefined | |
public var isAvailable: Bool { | |
switch self { | |
case .newVersion: return true | |
default: return false | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment