Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rockwotj
Last active April 3, 2021 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rockwotj/06be34674738e4b9db03efb7b6797816 to your computer and use it in GitHub Desktop.
Save rockwotj/06be34674738e4b9db03efb7b6797816 to your computer and use it in GitHub Desktop.
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