Is there a way to annotate an NSArray
of NSNumber
:
@property (nonatomic) NSArray<NSNumber *> *myProperty
in Objective-C, so that it will be imported in Swift as
var myProperty: [Int]
instead of var myProperty: [NSNumber]
?
I know of NS_SWIFT_NAME
, but that does not allow changing the type.