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

Feature/esob007 animation free #19

Conversation

jduigoudev
Copy link
Contributor

@jduigoudev jduigoudev commented Nov 27, 2023

Related to the Apple iOS documentation : https://developer.apple.com/documentation/swiftui/animations

You can check if you have any animations :
*If you call to the withAnimation(::) global function.

If you cal animation(_:value:) view modifier to the view.

If you animate changes to a Binding by using the binding’s animation(_:) method.

Need to check UIKit and SwiftUI :

Animations in UIKit:

  • UIView.animate(withDuration:animations:)

  • UIView.animate(withDuration:animations:completion:)

  • UIView.animate(withDuration:delay:options:animations:completion:)

  • UIView.animateKeyframes(withDuration:delay:options:animations:completion:)

  • UIView.transition(with:duration:options:animations:completion:)

  • CABasicAnimation

  • CAKeyframeAnimation

  • CATransition
    Animations in SwiftUI:

  • withAnimation

  • Animation

  • AnyTransition

  • .animation(Animation?)

  • .transition(AnyTransition)

zippy1978
zippy1978 previously approved these changes Nov 29, 2023
# Conflicts:
#	swift-lang/src/main/resources/ecocode-swift-rules.json
Copy link

@jduigoudev jduigoudev merged commit 0569cc7 into green-code-initiative:main Jan 31, 2024
2 checks passed
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