I am a beginner and i am working on the Scrumdinger tutorial . this message keeps popping up "Cannot infer contextual base in reference to member 'trailingIcon'" I do not know how to fix it. Here is my code import SwiftUI
struct CardView: View { let scrum: DailyScrum var body: some View { VStack(alignment: .leading){ Text(scrum.title) .font(.headline) .accessibilityAddTraits(.isHeader) Spacer() HStack { Label("(scrum.attendees.count)", systemImage: "person.3") .accessibilityLabel("(scrum.attendees.count) attendees") Spacer() Label("(scrum.lengthInMinutes)", systemImage: "clock") .accessibilityLabel("(scrum.lengthInMinutes) minute meeting") .labelStyle(.trailingIcon) } .font(.caption) } .padding() .foregroundColor(scrum.theme.accentColor) } }
struct CardView_Previews: PreviewProvider { static var scrum = DailyScrum.sampleData[0] static var previews: some View { CardView(scrum: scrum) .background(scrum.theme.mainColor) .previewLayout(.fixed(width: 400, height: 60)) } } Any ideas?