green-code-initiative / ecoCode-android

Reduce the environmental footprint of your Java-based Android apps with SonarQube
https://ecocode.io
GNU General Public License v3.0
54 stars 17 forks source link

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

Closed jduigoudev closed 1 year ago

jduigoudev 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 1 year ago

@jduigoudev , I moved this issue to the new iOS repository here : https://github.com/green-code-initiative/ecoCode-ios/issues/7