Skip to content

Commit

Permalink
Merge pull request #301 from moyoteg/main
Browse files Browse the repository at this point in the history
Update Permission.swift
  • Loading branch information
ivanvorobei committed Jun 20, 2022
2 parents 5953579 + c0f9f0c commit e7ffc36
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Sources/PermissionsKit/Permission.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,21 @@ open class Permission: Equatable {

// MARK: - Models

@objc public enum Status: Int {
@objc public enum Status: Int, CustomStringConvertible {

case authorized
case denied
case notDetermined
case notSupported

public var description: String {
switch self {
case .authorized: return "authorized"
case .denied: return "denied"
case .notDetermined: return "not determined"
case .notSupported: return "not supported"
}
}
}

@objc public enum Kind: Int {
Expand Down

0 comments on commit e7ffc36

Please sign in to comment.