Reputation: 311
Xcode reports this warning:
parameter of 'swift_name' attribute must be a Swift function name string"
For the following function. I do not know what I wrote incorrectly.
+ (CGFloat *)feedDetailWithUpdate:(PostUpdate *)update
trackingInfo:(nullable TrackingInfo *)trackingInfo
highlightedComments:(NSArray<FeedComment *> *)highlightedComments
NS_SWIFT_NAME(feedDetailWithUpdate(update:trackingInfo:highlightedComments));
Upvotes: 5
Views: 1091
Reputation: 311
I figured it out, there was a colon missing at the end of the argument list:
NS_SWIFT_NAME(feedDetailWithUpdate(update:trackingInfo:highlightedComments:));
Upvotes: 9