Skip to content

Instantly share code, notes, and snippets.

@sayler8182
Created November 13, 2020 14:22
Show Gist options
  • Save sayler8182/59e85b2f5a817f5e0a2b2ddbef9eee16 to your computer and use it in GitHub Desktop.
Save sayler8182/59e85b2f5a817f5e0a2b2ddbef9eee16 to your computer and use it in GitHub Desktop.
// 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