Maksym M.
04/12/2025, 4:27 PMinterface Middleware<S : State> {
fun interfere(
store: Store<S>,
next: Dispatch<Action>,
): Dispatch<Action>
}
I am trying to put a few of middleware instances available into a list like so
let container: RootEffectContainer
let effects: [Effect]
let middleware: [Middleware<RootState>]
init() {
container = RootEffectContainer()
effects = container.effects()
middleware = [
ActionEffectMiddleware<RootState>(effects: effects),
EventEffectMiddleware<RootState>(effects: effects)
]
}
And that gets me an error
Protocol 'Middleware' does not have primary associated types that can be constrained
Maksym 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