A better solution to at 5:42 will be to remove the HStack and add padding to the VStack instead like below:
var body: some View {
ZStack(alignment: .top) {
MapViewContainer(annotations: viewModel.annotations)
.edgesIgnoringSafeArea(.all)
VStack(spacing: 12) {
TextField("Search for something...", text: $searchQuery)
.padding()
.background(Color.white)
if viewModel.isSearching {
Text("Searching...")
}
}.padding()
}
}