NS_REFINED_FOR_SWIFT and return value

Viewed 1959

I'm new with Swift and I begin exploring some feature for bridging with Objective-C.

Currently I have a method with NSError reference which is:

- (BOOL) verifyPersonalizationWithError:(NSError **) error NS_REFINED_FOR_SWIFT;

Now I can access the method in Swift for some refinements, but the return value is lost. The generated method for Swift is:

open func __verifyPersonalization() throws

The error is correctly handled with the do catch but the return value seems to be lost.

Any missing thing for my NS_REFINED_FOR_SWIFT macro?

1 Answers
Related