green-code-initiative / ecoCode-ios

Reduce the environmental footprint of your Swift-based iOS apps with SonarQube
https://ecocode.io
GNU General Public License v3.0
4 stars 5 forks source link

[iOS] Sobriety - Animation free (ESOB007) #7

Closed zippy1978 closed 7 months ago

zippy1978 commented 1 year ago

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 :

  1. Animations in UIKit:
  1. Animations in SwiftUI:
zippy1978 commented 7 months ago

Adressed in https://github.com/green-code-initiative/ecoCode-ios/pull/19