Skip to content

1.1.59

Choose a tag to compare

@github-actions github-actions released this 21 Jul 10:28
· 50 commits to master since this release
feat(anim): Introduce PresetAnim and enhance animation capabilities

This commit introduces a new `PresetAnim` object providing predefined animation configurations like fade in/out, slide in/out from various directions, pop in, and bounce in.

It also refactors and enhances the `View.anim` extension function:
- Default `gravity` in `AnimConfig` is now `Gravity.NO_GRAVITY`.
- Animation logic is improved for smoother transitions, correctly handling `isIn` states for translation, alpha, and rotation.
- A DSL-style `anim` extension is added: `view.anim { fadeIn() }`.
- `animSafely` extension is introduced to ensure animations run after view dimensions are available.

The sample app (`MainActivity.kt`, `FeatureAdapter.kt`, `FeatureEntry.kt`) has been updated to demonstrate hierarchical feature navigation using the new animation presets for item transitions. `FeatureEntry` now supports child entries, and `FeatureAdapter` manages a stack for navigation.