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

Vasili

01/14/2020, 9:22 AM
Hello! Simple question but I didn't find it by googling. Are default values supported for functions/constructors in Koltin Multiplatform compiled into iOS target for using in Swift? Can I use default implementation of
NetworkClient
in common code to be able to change this client in Swift or leave default?
Copy code
class GetOrganizations(
    private val network: NetworkClient = KtorNetworkClient()
) : Action<Params, List<Organization>>
d

dambakk

01/14/2020, 9:25 AM
MPP targeting ios generates an objective-c framework, and obj-c does not support default param values I believe 😕
v

Vasili

01/14/2020, 9:28 AM
It's a pity... Thanks for the answer
👍 1
5 Views