SwiftUI 2.0 implementation demonstrating how to create dropdown and search bar, you can check out the implimentation from here: Food Delivery App - Custom Dropdow & Search Bar - SwiftUI 2.0
Please do support my channel by subscribing and liking the video