skip to Main Content

Xcode – Why is a component being selected even when not being tapped swift/swiftui

I have a component called CourseCard2 with the following design: VStack(spacing: 0) { imageSection detailsSection } .buttonStyle(PlainButtonStyle()) .background( RoundedRectangle(cornerRadius: 16) .fill(Color(.systemBackground)) .shadow( color: Color.black.opacity(0.08), radius: 12, x: 0, y: 4 ) ) .padding(.horizontal) .onTapGesture { showSheet = true } .sheet(isPresented:…

VIEW QUESTION
Back To Top
Search