Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Enumerations 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: #Enumerations #swift
ADD COMMENT
Topic
Name
4+5 =