Bao Le Duc
03/21/2023, 1:02 PMJohn O'Reilly
03/21/2023, 1:14 PMObjCName
for that - https://kotlinlang.org/docs/native-objc-interop.html#name-translationBao Le Duc
03/21/2023, 1:15 PMObjCName
can help to transform individual classes, I would do it for every classes in my libraryJeff Lockhart
03/21/2023, 2:51 PM__attribute__((swift_name("Bar")))
@interface FOOBar
Because Swift has module namespacing, ObjC's convention for type prefixing is optional in Swift.
If you run into a situation where two modules used in the same file have conflicting types, you can use a local typealias to disambiguate, e.g.:
typealias AMyClass = ModuleA.MyClass
typealias BMyClass = ModuleB.MyClass
Bao Le Duc
03/21/2023, 2:54 PMJeff Lockhart
03/21/2023, 3:00 PMBao Le Duc
03/21/2023, 3:03 PMObjCName
annotation and/or Swift’s typealias then. Thanks @Jeff Lockhart, your tips is really helpful