Skip to content

Is there a way to register a dependency from iOS? #1108

@romanandreyvich

Description

@romanandreyvich

Some dependencies in my project needs to be registered from iOS side (some platform implementations). Is there a way to do it?

Actually Koin has API to create a module, but the issue I faced is that Swift code cannot use reified functions from Kotlin.

let module = Koin_coreModule(createAtStart: true, override: false)

But I can't use the module's factory { } or single { } methods because they are reified functions.

Koin version: 3.0.1
Kotlin: 1.4.31

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions