Hello,
I’m using an Objective-C class in my Swift app. In objc the method returns a NSString and has a NSError pointer. When I import this class and call it’s method in Swift it returns a string and supports throw. I have not really done much with Swift, so I’m really trying to come up to speed here.
So my question is I’m trying to use guard let try else but I dont know how to access the error in the else block. Am I doing it wrong? Is there a way in my project that I can do a NS_SWIFT_NOTHROW globally for all imported Obj-C classes?
Thanks!
Powered by WPeMatico