Skip to content

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.

More on SwiftUI and iOS scenarios

Flashcards for this topic