Closed DanieleCeglia closed 8 years ago
For those landing on this question in the future, you'll need to escape 'try', like so:
SwiftTryCatch.`try`(
{
// stuff...
},
catch:
{ (exception) in
// stuff...
},
finally:
{
// stuff...
}
)
Ok, thanks!
Use https://github.com/inthepocket/SwiftTryCatch.git or hang on "pull request".
Merged pull request
Hello I'm trying to use SwiftTryCatch via Cocoapods, but in Xcode 7.3 this code won't compile:
I suggest to rename try in tryBlock, catch in catchBlock and finally in finallyBlock...