I have a TabView with a PageTabViewStlye(). In my personal project its get called tons of times, and I've reproduced with this little example. This is a big problem for me cause I have a big view where it calls the network, so I expect to onAppear just be called one time. Any ideas? If I remove the tabViewStyle it just works.
struct ContentView: View {
var body: some View {
TabView() {
Text("random")
.onAppear {
print("printed multiple times, 5 in a row")
}
Text("Other")
}.tabViewStyle(PageTabViewStyle())
}
}