StateSelector
Generic state selector for Swift/iOS. Wraps KClass internally so Swift doesn't need to deal with it.
Example from Swift:
let selector = CounterModule.shared.stateSelector
let stateFlow = await selector.select(store: store)
for await state in stateFlow {
print("Count: \(state.count)")
}Content copied to clipboard