Maksym M.
04/12/2025, 4:27 PMinterface MiddlewareS : State {
fun interfere(
store: StoreS,
next: DispatchAction,
): DispatchAction
}
I am trying to put a few of middleware instances available into a list like so
let container: RootEffectContainer
let effects: [Effect]
let middleware: [MiddlewareRootState]
init() {
container = RootEffectContainer()
effects = container.effects()
middleware = [
ActionEffectMiddlewareRootState(effects: effects),
EventEffectMiddlewareRootState(effects: effects)
]
}
And that gets me an error
Protocol 'Middleware' does not have primary associated types that can be constrainedMaksym M.
04/12/2025, 4:29 PMephemient
04/12/2025, 4:46 PMephemient
04/12/2025, 4:46 PMMaksym M.
04/12/2025, 4:55 PMWe continue to expand the range of declarations and types supported by Swift export. We have added basic support for:
List, Map and Set types.
Is there a good source that goes the critical stuff?
Other question I have is this a permanent limitation or there is a project to make Kotlin<->Swift interop direct? If so, is there any link to see the progress?ephemient
04/12/2025, 4:56 PMephemient
04/12/2025, 4:56 PMMaksym M.
04/12/2025, 5:00 PMephemient
04/12/2025, 5:07 PM