I'm trying to follow the Date Planner tutorial and the symbol picker went really weird.
I changed sth, and the whole app stoped working
I changed it back, it still wont work.
SymbolPicker code:
struct PickerView: View {
@State var item: TodoItem
@State private var showingPopover: Bool = false
var columns = Array(repeating: GridItem(.flexible()), count: 6)
var body: some View {
LazyVGrid(columns: columns){
ForEach(SymbolOptions.symbolNames, id: \.self){ symbol in
Button {
item.symbol = symbol
} label: {
Image(systemName: symbol).foregroundColor(item.color)
}
}
}
}
}