Skip to content

Instantly share code, notes, and snippets.

@rockwotj

rockwotj/Foo.h

Last active Apr 3, 2021
Embed
What would you like to do?
Generated ObjC Swift Interface
SWIFT_CLASS("_TtC3Foo9TestClass")
@interface TestClass : NSObject
- (void)fooWithLabel:(NSString * _Nonnull)arg;
- (void)foo1:(NSString * _Nonnull)arg;
- (void)barWithLabel:(NSString * _Nonnull)arg other:(NSInteger)ar;
- (void)bar1:(NSString * _Nonnull)arg other:(NSDictionary<NSString *, id> * _Nonnull)ar;
- (void)quxWithLabel:(NSString * _Nonnull)arg :(NSInteger)ar;
- (void)qux1:(NSString * _Nonnull)arg :(NSArray * _Nonnull)ar;
- (void)thudWithArg:(int64_t)arg ar:(double)ar;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
@objc class TestClass : NSObject {
@objc func foo(label arg: String) {
print("Hello \(arg)")
}
@objc func foo1(_ arg: String) {
print("Hello \(arg)")
}
@objc func bar(label arg: String, other ar: Int) {
print("Hello \(arg)")
}
@objc func bar1(_ arg: String, other ar: [String:AnyObject]) {
print("Hello \(arg)")
}
@objc func qux(label arg: String, _ ar: Int) {
print("Hello \(arg)")
}
@objc func qux1(_ arg: String, _ ar: [Any]) {
print("Hello \(arg)")
}
@objc func thud(arg: Int64, ar: Double) {
print("Hello \(arg)")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment