https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
s

SrSouza

02/14/2023, 6:06 PM
Hi folks, is possible to replace all Swift names from objc header with a Prefix? For example, I want that all my Kotlin class by default have the Prefix
Kmm
on
swift_name
k

Kevin S

02/15/2023, 2:50 PM
Not sure if you can do it globally but you can use
@ObjcName
to rename individual files (https://kotlinlang.org/docs/whatsnew18.html#improved-objective-c-swift-interoperability)
e

Erik

03/21/2023, 4:37 PM
Sorry for digging up this thread, but I'm looking for a way to name the 'file' that contains top-level declarations so that its name is nicer in Swift
It seems that
@ObjcName
cannot be used for naming the file, only classes, functions, etc.
27 Views