MediumScenarioSwiftUI and iOS scenarios
A SwiftUI view reloads constantly and loses scroll position. What could cause it?
What a good answer covers
Unstable identity in lists or state recreated each update. Use stable Identifiable ids, keep state in the right property wrapper, and avoid creating objects in body.
PreviousWhy would you model an API response as a Kotlin data class?Next Explain @State, @Binding, @StateObject and @ObservedObject.