You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apple recommends that state properties in SwiftUI View's are private:
You should only access a state property from inside the view’s body, or from methods called by it. For this reason, declare your state properties as private, to prevent clients of your view from accessing it. - https://developer.apple.com/documentation/swiftui/state
This seems doable. It would have to be an opt-in rule since it has potential to break existing code (even if the code in question deserves to be broken).
Apple recommends that state properties in SwiftUI
View
's are private:All of these should be marked as
private
:The text was updated successfully, but these errors were encountered: