Comments (7)
I would be interested in exploring this further if I can get a better idea of what you mean here
Most of the APIs are described in the docs: https://arkivanov.github.io/Decompose/extensions/compose/#animations
Let me know if you need more information.
from decompose.
Well, it was pretty easy to create a new simple example with shared transitions, without predictive back support and without any changes in Decompose. I've uploaded the example to a separate branch. I've also extracted a separate commit that just adds the shared transitions on their own.
The support of the predictive back gesture is tricky and most likely will require some API changes. I will keep providing updates here.
Screen_recording_20240427_162813.mp4
from decompose.
It would be nice to document the option with shared traditions but without predictive back gesture for now.
from decompose.
Thanks for raising this issue! The biggest challenge for now seems to be that Decompose uses its own stack animation API, and so it might be difficult to provide AnimatedVisibilityScope
. The custom animation API allows writing custom animations easily almost without limitations.
We'll need to wait until the shared transitions API is available in Multiplatform Compose, then I will investigate and provide updates here. We might need a separate animation API to support shared transitions.
from decompose.
There is also a modifier like sharedElementWithCallerManagedVisibility
, which might work.
from decompose.
The custom animation API allows writing custom animations easily almost without limitations.
This sounds very enticing, I would be interested in exploring this further if I can get a better idea of what you mean here!
We'll need to wait until the shared transitions API is available in Multiplatform Compose
Yeap, absolutely. I am raising this issue perhaps a bit early, but it's good to have in mind regardless.
sharedElementWithCallerManagedVisibility
Yeap, I will give this a shot too, thanks!
from decompose.
I've checked the predictive back gesture support further: currently it looks like we'll need to change both the animation and and the predictive back gesture APIs. Indeed, the API will need to provide AnimatedVisibilityScope
. Most likely this will be implemented in the next 4.0
major release, together with #695. Or maybe as a separate set of experimental APIs in a minor 3.x
update.
from decompose.
Related Issues (20)
- Predictive back gesture is not working when started while the main animation is in progress
- Navigation animation causes content to not invalidate HOT 9
- KMP project stopped building for iOS with wasm supported decompose HOT 5
- crash: on 3.0.0-alpha07 java.lang.NoSuchMethodError HOT 4
- Expose more parameters for predictive back animations HOT 1
- Document compose BackHandler <> decompose backHandler <> predictive back interaction HOT 1
- Expand the documentation on why do we need components HOT 1
- `LifecycleController` does not consider `resume`/`pause` events. HOT 1
- Consider adding an overload of `predictiveBackAnimation` that has a selector lambda for **both** animation and fallback animation HOT 1
- Describe creating custom navigation models in the docs HOT 1
- How to use StateValue in SwiftUI Textfield HOT 2
- When the app is closed then the subscribeAsState() doesn't work HOT 12
- Print configurations when the uniqueness violation is detected HOT 1
- Accessing ViewModel inside component {Question}
- Где посмотреть на реализацию CustomNavigationComponentChildren HOT 1
- Import and open sample project HOT 4
- Can not find the version for installation?
- Support new Compose Multiplatform Lifecycle (and maybe ViewModel) HOT 2
- Update samples and templates HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from decompose.