Use new Animation
structure to define sheet present / dismiss animations
#26
Labels
enhancement
New feature or request
Intro
Y—CoreUI 1.6.0+ has a new
Animation
struct (used in Y—Snackbar) that lets us configure component animations without even needing to know the animation type (e.g. regular curve vs spring-dampening). We should adopt it for Y—BottomSheet's animations to allow increased customizations.Task
BottomSheetController.Appearance
with two new properties:
Animation+BottomSheet.swift
file with the following default animations defined:In
BottomSheetController.Appearance
use the above defaults as the default parameters when initializing anAppearance
object.Have the present and dismiss animators leverage these new appearance properties for their animations.
Update unit tests for 100% coverage and properly testing the new functionality.
Note: when Reduced Motion is on, we will ignore the provided curve (it might be spring-dampening which does not make sense for a cross-dissolve) and replace it with a default easing curve (see Y—Snackbar).
The text was updated successfully, but these errors were encountered: