Skip to content

Instantly share code, notes, and snippets.

@CrystalKnightCodes
Created March 30, 2021 15:17
Show Gist options
  • Save CrystalKnightCodes/ba2c46bcae585ab77ae3d6692bc8b096 to your computer and use it in GitHub Desktop.
Save CrystalKnightCodes/ba2c46bcae585ab77ae3d6692bc8b096 to your computer and use it in GitHub Desktop.
TabView Tutorial Content View
import SwiftUI
struct ContentView: View {
// MARK: - Properties
@State var results = [Vacation]()
@State var selection = 0
// MARK: - View
var body: some View {
VStack(alignment: .center) {
SearchBarView()
.padding()
SearchMapView()
.frame(maxHeight: UIScreen.main.bounds.height/3)
SearchResultsView()
Spacer()
}
.ignoresSafeArea(.keyboard, edges: .bottom)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment