skip to Main Content

Xcode – Cannot convert value of type 'ServiceModel.Type' to expected argument type 'ServiceModel'

struct ServicePageView: View { @ObservedRealmObject var employeeGroup: ServiceModel Section(header: Text("Select Employees: ")){ List{ ForEach(employeeGroup.employeesList, id: .self){ employee in Text(employee.firstName) } } } } struct ServicePageView_Previews: PreviewProvider { static var previews: some View { ServicePageView(employeeGroup: ServiceModel) } } Hello, Getting an…

VIEW QUESTION
Back To Top
Search