Post

Replies

Boosts

Views

Activity

Reply to onAppear is called when the view hasn't appeared
I'm experimenting this issue in Xcode 14.2 and iOS 16.2... .onAppear {       withAnimation(.easeOut(duration: 0.5)) {         print("IS ANIMATING: \(isAnimating)")         isAnimating = true       }     } TabView {       ForEach(0..<5) { item in          FruitCardView()       } //: FOREACH     } //: TABVIEW     .tabViewStyle(PageTabViewStyle())     .padding(.vertical, 20) That onAppear is for a ZStack. And this is the logs that prove onAppear is called before the item is visible in the TabView...
Dec ’22