https://kotlinlang.org logo
#decompose
Title
# decompose
f

Federico Torres

03/13/2023, 12:18 PM
👋 is there any similar implementation of the
Children
composable for Android on iOS for SwiftUI? I am looking in particular to animate transitions between children
a

Arkadii Ivanov

03/13/2023, 12:24 PM
You can try the sample StackView for SwiftUI, it utilizes the platform navigation - https://github.com/arkivanov/Decompose/blob/master/sample/app-ios/app-ios/StackView.swift Or you can write something your own. You can check the Custom Navigation example - https://github.com/arkivanov/Decompose/blob/master/sample/app-ios/app-ios/CustomNavigationView.swift It's not Child Stack, but similar concepts are used.
f

Federico Torres

03/13/2023, 12:27 PM
that's great! I am doing some exploratory code from SwiftUI I'll check it. Regarding Android I have found that Decompose can solve problems that otherwise would be harder to solve, so even without multiplatform decompose is useful, thanks for the work!
a

Adam Brown

03/13/2023, 11:43 PM
maybe it would make sense to make a swift library that we can pull in, a cocoapods or what ever
a

Arkadii Ivanov

03/14/2023, 12:03 AM
I doubt that it's technically possible to create a published Swift library that would depend on Decompose. And at the same time it could be added to an Xcode project that depends on a shared module that also depends on Decompose. 😀 I had this question with Reaktive and also couldn't solve it that time - https://github.com/badoo/Reaktive/issues/538#issuecomment-723218997 Would be good to know if there is actually a way.
a

Adam Brown

03/14/2023, 7:10 PM
ooo good point
a

Andrew Steinmetz

04/18/2023, 6:12 AM
8 Views