10/31/2023 0 Comments Kotlin ios app![]() ![]() ![]() (Relays are just subjects that never terminate.) Similar libraries + extension functions This idea of transforming observables is explored in much more detail in this talk by Jake Wharton.Īdditionally, we can use RxBinding and RxCocoa for creating observables from user inputs, and relays from RxRelay and RxCocoa to create observables from other inputs. Each input event is correlated with its own transformer class that encapsulates a series of operations – for example, we can flatMap a user click to the result of an async network call and map that result to a model for our view to consume and render. ![]() This mapping of inputs to UI updates is implemented with RxJava on Android and RxSwift on iOS. We basically want to map input events (from a user action or a change in the app's data model) to discrete updates for the view to consume and render. I'm using something very close to model-view-intent as it's described in this blog post by Hannes Dorfmann. I'm not talking about React Native or Kotlin/Native here – just plain old native apps with Kotlin and Swift! Shared architectureįor me, a shared architecture has been the most important component of reducing duplicate work across platforms. I've spent the last few months writing an app for both Android and iOS, and I've developed some strategies for sharing as much code as possible between the two apps to minimize duplicate work and ship quickly and consistently. Menu Sharing Kotlin and Swift code between Android and iOS 04 September 2018 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |