Reply to why is onAppear called twice on group in ZStack? I would recommend using the following .task modifier: Text("Smth") .task(id: "some ID") { fetchData() } UI Frameworks SwiftUI Oct ’21