skip to Main Content

Xcode – How Do I Initialize @Binding SwiftUi

I cannot seem to figure out how to initialize a @Binding that is of type Array: struct RecipeItemDetailView: View { @Binding var recipeDetails: [StoredRecipeModel] var body: some View { NavigationView { VStack { Text(recipeDetails[1].name) } } } struct RecipeItemDetailView_Previews: PreviewProvider…

VIEW QUESTION
Back To Top
Search