Marc Reichelt
02/22/2023, 12:52 PMMarc Reichelt
02/22/2023, 12:59 PMfun doSomething(flow: Flow<Boolean>)
Now we have a publisher like this in Swift:
func swiftFunction(publisher: AnyPublisher<Boolean, Never>) {
doSomething(publisher.asFlow())
}
Is there anything like asFlow() (which currently is not available) - or what would you do instead?Rick Clephas
02/22/2023, 1:13 PMMarc Reichelt
02/22/2023, 1:25 PMRick Clephas
02/22/2023, 1:31 PMFlow arguments
• adding support for suspend arguments
• adding support for Swift implementations of coroutine declarations (e.g. subclassing a Kotlin class in Swift and overriding a suspend or Flow declaration)
The first two aren’t that complex, the later causes more headache 😅.Marc Reichelt
02/22/2023, 1:59 PMMarc Reichelt
02/22/2023, 2:00 PMMutableSharedFlow for exampleMarc Reichelt
02/22/2023, 2:01 PMonValueChanged: (Boolean) -> Unit and call it a day 😄Rick Clephas
02/22/2023, 2:06 PMFlow back to Kotlin.Marc Reichelt
02/22/2023, 4:41 PM