I have custom search bar and custom circle image in toolbar, when I click the circle image, I want to navigate new SwiftUI. Any idea will be appreciated.
ImageView:
ContentView:
ImageView:
Code Block VStack(alignment: .leading, spacing:0){ HStack(spacing: 0){ TextField("Search", text: $search) .padding(.vertical,5) .padding(.horizontal) .background(Color.gray.opacity(0.090)) .cornerRadius(30) .frame(width: 330, height: 32) Image("imgage") .resizable() .aspectRatio(contentMode: .fill) .frame(width: 32, height: 32) .clipShape(Circle()) .overlay(Circle().stroke(Color("fig"), lineWidth: 1)) } }
ContentView:
Code Block var body: some View { //I have tabview here// }