At 7:06 in the video, Taylor begins talking about the new .toolbar modifier.
Since .navigationBarItems has been deprecated, I am trying to make the same with it's replacement - .toolbar. I have tried many ways to have an image and text exist in a NavigationView toolbar, none of which are working.
With this code, only the text will show. It seems like a bug, but I wonder if I'm missing something.
Feedback item: FB8275764
David
Since .navigationBarItems has been deprecated, I am trying to make the same with it's replacement - .toolbar. I have tried many ways to have an image and text exist in a NavigationView toolbar, none of which are working.
Code Block SwiftUI .toolbar(content: { ToolbarItem(placement: .navigationBarLeading) { Button(action: { self.sheetIsPresented.toggle() }) { HStack { Image(systemName: sortType == .all ? "line.horizontal.3.decrease.circle" : "line.horizontal.3.decrease.circle.fill")) Text(sortType.rawValue) } } .sheet(isPresented: $sheetIsPresented) { ... } } }
With this code, only the text will show. It seems like a bug, but I wonder if I'm missing something.
Feedback item: FB8275764
David