Код: Выделить всё
@objcMembers class SomeClass: NSObject {
func someMethod(init: String) {}
// ↓ These will append an underscore in the header file.
func someMethod(template: String) {}
func someMethod(consteval: String) {}
}
Код: Выделить всё
SWIFT_CLASS("_TtC9iOSTester9SomeClass")
@interface SomeClass : NSObject
- (void)someMethodWithInit:(NSString * _Nonnull)init;
- (void)someMethodWithTemplate:(NSString * _Nonnull)template_;
- (void)someMethodWithConsteval:(NSString * _Nonnull)consteval_;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
Подробнее здесь: https://stackoverflow.com/questions/792 ... -in-autoge
Мобильная версия