The function can be used on a class object.
Let's declare an extension function over a custom type in Kotlin code:
//ExtensionFunctionOverUsualClass.kt
class UsualClass {
}
fun UsualClass.extensionFunction() {
println("Successful call")
}
On the Swift side, we can use this function similarly to Kotlin, on an object of the desired class:
UsualClass().extensionFunction()