Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

how to enum use in swift

// MARK: Enumerations used in swift

let result = "failure"
let result2 = "failed"
let result3 = "fail"
enum Result {
    case success
    case failure
}
let res = Result.failure
print(res)
 
PREVIOUS NEXT
Tagged: #enum #swift
ADD COMMENT
Topic
Name
3+3 =