Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS enter animation for Dialog seems not to be working #42

Open
mattegoghero opened this issue Nov 12, 2024 · 2 comments
Open

iOS enter animation for Dialog seems not to be working #42

mattegoghero opened this issue Nov 12, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mattegoghero
Copy link

Hi, I've been trying to add a simple dialog in the commonMain part of my composable multiplatform application but when I test it on an iOS emulator (Iphone 16 iOS 18) the enter animation of the dialog and the scrim seems not to be working. The exit animation works fine though.

I'm using version 1.19.1.

val dialogState = rememberDialogState(true)
Dialog(dialogState){
    Scrim(
        enter = fadeIn(tween(durationMillis = 250)),
        exit = fadeOut(tween(durationMillis = 150)),
    )
    DialogPanel(
        enter = scaleIn(initialScale = 0.8f) + fadeIn(tween(durationMillis = 250)),
        exit = scaleOut(targetScale = 0.6f) + fadeOut(tween(durationMillis = 150)),
    ){
        Text("Hello")
    }
}
@alexstyl alexstyl added the bug Something isn't working label Nov 12, 2024
@alexstyl
Copy link
Member

Thanks for opening this issue.

Turns out Dialogs behave a bit different on iOS than the other platforms.

@alexstyl
Copy link
Member

alexstyl commented Dec 1, 2024

I've tried tackling this a few times and still haven't figured out what is the reason this is happening. It seems like an issue in Compose itself, but I cannot figure this out yet.

Is this blocking you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants