What does it mean when I see an exclamation point after the "try" statement like the following code? Is it unwrapping the result of the statement?
do {
try! cnContactStore.execute(saveRequest)
} catch let error as NSError {
print(error)
}
Got it! In documentation for Swift:
Disabling Error Propagation
Sometimes you know a throwing function or method won’t, in fact, throw an error at runtime. On those occasions, you can write
try! before the expression to disable error propagation and wrap the call in a runtime assertion that no error will be thrown. If an error actually is thrown, you’ll get a runtime error.