Skip to content

Conversation

@screwdriver92
Copy link

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.

- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants