Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transitions don't use "inDuration" #357

Open
BlueCobold opened this issue Nov 2, 2020 · 1 comment
Open

Transitions don't use "inDuration" #357

BlueCobold opened this issue Nov 2, 2020 · 1 comment
Labels

Comments

@BlueCobold
Copy link

#224 Report

All transitions use hardcoded "inDuration" of 0.6s, although they have a constructor-parameter for it. It would further be great to have them flexible, because 0.6s is really slow for some situations and animations.

Environment

  • Xcode version (e.g. 9.1): 12.1
  • PopupDialog version (e.g. 0.5.0): 1.1.1
  • Minimum deployment target (e.g. 9.0): 13
  • Language (Objective-C / Swift): Swift
  • In case of Swift - Version (e.g. 4): 5

Dependency management

  • Dependency manager (e.g. CocoaPods): CocoaPods
  • Version (e.g. 1.3.1): 1.10.0

What did you expect to happen?

I expect to use animations to use the given constructor-parameters for animation durations or potentially be configurable

What happened instead?

They use 0.6s hardcoded in any case

UIView.animate(withDuration: 0.6, delay: 0.0, usingSpringWithDamping: 0.6, initialSpringVelocity: 0, options: [.curveEaseOut], animations: { [weak self] in

UIView.animate(withDuration: 0.6, delay: 0.0, usingSpringWithDamping: 0.6, initialSpringVelocity: 0, options: [.curveEaseOut], animations: { [weak self] in

UIView.animate(withDuration: 0.6, delay: 0.0, options: [.curveEaseOut],

@stale
Copy link

stale bot commented Dec 25, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant