https://kotlinlang.org logo
#koin-dev
Title
# koin-dev
x

Xinto

10/21/2023, 7:37 AM
Hey everyone, I was looking at ways to elegantly inject in SwiftUI and found that Koin doesn't quite provide a Swift API. Found an issue on the repo that no one seemed to have picked up yet. I was thinking of utilizing the newly introduced Swift Macros system, something along the lines of:
Copy code
@KoinInject private let userRepository: UserRepository
@KoinInject(parameters: [5]) private let newsRepository: NewsRepository
I would like to pick up the issue and try to implement the Koin Swift API, since no one seems to be working on it right now.
a

arnaud.giuliani

10/26/2023, 8:32 AM
Hello, yes it's a good point. I would like some help about making it better for Swift 🙂
would be great
3 Views