Hi guys. It’s possible to make a class from the s...
# multiplatform
c
Hi guys. It’s possible to make a class from the shared module have auto-conformance with a protocol created on the iOS-side? Imagine I have this
DataManager
on shared:
Copy code
class DataManager : KoinComponent {
    suspend fun requestMethod(): Result<SomeResponseType>  { ... }
}
On my iOS application, I want to use a more abstract version of it, creating a protocol directly on the iOS code:
Copy code
protocol AbstractDataManager {
    func requestMethod(completionHandler: (Result<SomeResponseType>?, Error?) -> Void)
}

extension DataManager: AbstractDataManager {}
If I do that, even with the method signature matching, the compiler says that
DataManager
is not in conformance with
AbstractDataManager
Any way to solve this without creating the abstract class on the shared module? Thanks in advance 🙂
👀 1