As I can include several buttons that swipe from right to left at the top of the screen. Having this code.
@Binding var selected: Int
var body: some View {
NavigationView{
VStack(){
}
.navigationTitle("Carecteries")
.toolbar{
ToolbarItem(placement: .navigationBarLeading )
{
Button(action:{
},
label: {Image(systemName: "person.circle")})
}
ToolbarItem(placement: .navigationBarTrailing)
{
Button(action:{
},
label: {Image(systemName: "i.circle")})
}
}
.accentColor(.red)
}//close Navigation
}
}
struct HomeView_Previews: PreviewProvider {
static var previews: some View {
HomeView(selected: .constant(0))
}
}