Created
March 30, 2021 15:17
-
-
Save CrystalKnightCodes/ba2c46bcae585ab77ae3d6692bc8b096 to your computer and use it in GitHub Desktop.
TabView Tutorial Content View
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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