I am trying to set the value of an @objc object in my Swift code using obj.setValue(value, forKey: key).
@objc
obj.setValue(value, forKey: key)
It works fine when the object has the
I wanted to call out the answer given in this question:
Catching NSException in Swift
as you can still use the Swift do/catch with the call in a natural fashion, the next best thing to Swift actually catching ObjC exceptions as it should.