TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Feb 2015 |
Maintained by Stan Serebryakov.
Adds try/catch support for Swift
Simple wrapper built around Objective-C to achieve the same result.
#import "SwiftTryCatch.h"
SwiftTryCatch.try({ () -> Void in
//try something
}, catch: { (error) -> Void in
//handle error
}, finally: { () -> Void in
//close resources
})