Setup the animation was not easy using string, it will be simple to set them up using the enum value.
An Extension.swift file is created.
The extension on Springable object conforms to UIView so this function can also be use on UIButton, UILabel, …
func animation(preset: Spring.AnimationPreset, curve: Spring.AnimationCurve)
This function help you select your preset and curve using enums.
Setup the animation was not easy using string, it will be simple to set them up using the enum value.