Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Enum 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)
Source by www.hackingwithswift.com #
 
PREVIOUS NEXT
Tagged: #Enum #swift
ADD COMMENT
Topic
Name
4+3 =