Archie
04/03/2023, 9:47 AMEvegenii Khokhlov
04/03/2023, 10:47 AMArkadii Ivanov
04/03/2023, 11:47 AMdo you have a more detailed sample for iOS implementationThere are third-party samples as well, some of them are mentioned in the docs - https://arkivanov.github.io/Decompose/samples/ You can also check the Used by list for samples.
most of the parts I don’t really understand why they are there or whether theyre needed in my usecasePerhaps, we could add some useful comments in the code.
It would be great to have a move ios centric guide for decompose.It depends on what you are struggling with. Could you please elaborate and maybe link some parts that are not clear? My assumption was that there should be a general KMP background, in terms of how to connect a Kotlin library with an iOS project, how to wire the UI and Kotlin observable states, etc. There are plenty of articles on the Web. Decompose is based on top of that, but there are some minor differences as well (like how to switch views).
Archie
04/04/2023, 7:14 AMArkadii Ivanov
04/04/2023, 8:04 AMArkadii Ivanov
04/04/2023, 8:05 AMI find it harder to distinguish which in the samples are needed for a simple minimal setup for my trail/experiment project to workFor a minimal setup you can refer to the main Decompose sample - https://github.com/arkivanov/Decompose/tree/master/sample/app-ios
Archie
04/04/2023, 8:16 AMEssenty
and parcelize-darwin
with the iOS framework?Arkadii Ivanov
04/04/2023, 8:33 AMArkadii Ivanov
04/04/2023, 8:37 AMArchie
04/04/2023, 9:06 AMEssenty
StateKeeper is required for the iOS implementation? Is it okay to just pass nil for
DefaultComponentContext(
...
stateKeeper: nil,
...
)
Arkadii Ivanov
04/04/2023, 9:22 AMStateKeeper
on iOS. Just pass nil
. Please refer to the samples - app_iosApp.swift.
Also, DefaultComponentContext
has a separate constructor with only Lifecycle
argument. It can be used in iOS.