Coder Social home page Coder Social logo

Comments (3)

MatkovIvan avatar MatkovIvan commented on May 29, 2024 3

it would be super cool to have IOS-like back animations

I know it's not the same, but sliding animations might be easily implemented like:

val animationSpec = tween<IntOffset>(700)
NavHost(
    navController = navController,
    startDestination = startDestination,
    enterTransition = { slideIntoContainer(SlideDirection.Left, animationSpec) },
    exitTransition = { slideOutOfContainer(SlideDirection.Left, animationSpec) },
    popEnterTransition = { slideIntoContainer(SlideDirection.Right, animationSpec) },
    popExitTransition = { slideOutOfContainer(SlideDirection.Right, animationSpec) }
) { ... }

We might tune default behaviour in the future, but don't expect it in first versions.
Our general vision here is that should be possible to implement this via only public API, so everyone might customize it for their specific needs

predictive back gesture

It on our radar too, no promises about ETA yet

from compose-multiplatform.

MatkovIvan avatar MatkovIvan commented on May 29, 2024 2

JetBrains started to publish dev builds of a multiplatform version of this package, but there is no stable version yet.
Usage example: https://github.com/MatkovIvan/nav_cupcake
Tracking of adding multiplatform support was there: #85 (comment)

from compose-multiplatform.

liufeng382641424 avatar liufeng382641424 commented on May 29, 2024

@MatkovIvan Does navigation-compose already support kmp?

from compose-multiplatform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.