Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 500 Bytes

File metadata and controls

27 lines (18 loc) · 500 Bytes

Member functions

You can call public member functions from Swift. Internal or private declarations aren't visible.

Explanations

Let's declare a simple class on the Kotlin code side:

class UsualClassFunction {
    
    fun someFunction() {
        // do something
    }
    
}

On the Swift side, we will get the same class with a function that matches the signature:

let myClass = UsualClassFunction()
myClass.someFunction()

Table of contents