SwiftUI insertion transion is not working when view added
问题 I'm trying SwiftUI tutorial in apple developer page. now I'm following transition tutorial but my transition is not working when the view added. here my code. VStack(alignment: .leading) { HStack() { // title Text(titleText) .font(.headline) .padding() Spacer() // button Button(action: { withAnimation { self.showDetail.toggle() } }) { Image(systemName: "chevron.right.circle") .imageScale(.large) .rotationEffect(.degrees(showDetail ? 90 : 0)) .padding() } } // detail if showDetail { Text