Marcel
05/06/2025, 11:31 AMScrollView {
VStack {
cmpView1
cmpView2
swiftView1
swiftView2
// ...
}
}
I'm using Compose 1.8.0-rc01, and this is how I'm creating the animation:
AnimatedVisibility(
modifier = Modifier.fillMaxWidth(),
visible = state.isVisible,
enter = fadeIn(animationSpec = tween(durationMillis = 500)) + expandVertically(
expandFrom = <http://Alignment.Top|Alignment.Top>,
animationSpec = tween(durationMillis = 500)
),
exit = fadeOut(animationSpec = tween(durationMillis = 500)) + shrinkVertically(
shrinkTowards = <http://Alignment.Top|Alignment.Top>,
animationSpec = tween(durationMillis = 500)
)
) {
// Banner
}
Any possible solutions to make it look nicer?Marcel
05/06/2025, 11:32 AMCsaba Szugyiczki
05/06/2025, 11:43 AMMarcel
05/06/2025, 11:45 AMCsaba Szugyiczki
05/06/2025, 11:51 AMMarcel
05/06/2025, 12:03 PMVStack {
CmpEntryPoint(
feature: RandomFeature.Banner(
param1: randomParam,
navigateToSomewhere: {
// Navigate in Swift
}
),
fillScreenHeight: false
)
//...
}
Marcel
05/06/2025, 12:10 PMfillScreenHeight: false
uses a custom implementation that mesures a Compose view and passes its height to SwiftUI, suggested by @John O'Reilly in his blog post: https://johnoreilly.dev/posts/swiftui-component-compose-ios/John O'Reilly
05/06/2025, 12:11 PMMarcel
05/06/2025, 12:12 PMCsaba Szugyiczki
05/06/2025, 2:01 PMColton Idle
05/06/2025, 10:32 PMMarcel
05/07/2025, 6:56 AMMarcel
05/07/2025, 6:57 AMCsaba Szugyiczki
05/07/2025, 7:59 AMMarcel
05/08/2025, 7:08 AMCsaba Szugyiczki
05/08/2025, 7:47 AM