It seems this feature has been included:
0099-conditionclauses.md
Try this:
if let errorValue = error, errorValue.code == ErrorNotExist {
}
More Related Contents:
- Swift 3 incorrect string interpolation with implicitly unwrapped Optionals
- How to convert Data to hex string in swift
- Waiting until the task finishes
- round trip Swift number types to/from Data
- How do I dispatch_sync, dispatch_async, dispatch_after, etc in Swift 3, Swift 4, and beyond?
- The “++” and “–” operators have been deprecated Xcode 7.3
- What is the ‘open’ keyword in Swift?
- Non-‘@objc’ method does not satisfy optional requirement of ‘@objc’ protocol
- How to apply the type to a NSFetchRequest instance?
- Accessing code in Swift 3 Error
- Shuffle array swift 3
- What is a good example to differentiate between fileprivate and private in Swift3
- Swift 3 for loop with increment
- Express for loops in swift with dynamic range
- What happened to the UIView?() constructor in Swift 3.0?
- Swap rootViewController with animation?
- Why do Self and self sometimes refer to different types in static functions?
- Whither dispatch_once in Swift 3?
- Add Local Notification in iOS 10 – Swift 3
- Xcode 8 / Swift 3 : Simple UIPicker code not working
- Make code with Firebase asynchronous
- try, try! & try? what’s the difference, and when to use each?
- print without newline in swift
- Swift3 optionals chaining in IF conditions bug?
- How can I disambiguate a type and a module with the same name?
- How can I switch views programmatically in a view controller? (Xcode, iPhone)
- How to get user home directory path (Users/”user name”) without knowing the username in Swift3
- Swift find all occurrences of a substring
- Core Data Predicate Filter By Today’s Date
- AVAudioEngine downsample issue