Building a watchOS app for the first time, and for some reason I'm not able to get the title to show up.
I just made a few initial changes to ContentView:
struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "drop")
.imageScale(.large)
.foregroundColor(.accentColor)
Text("some info")
.padding()
}
.navigationTitle("title")
}
}
Everything within the VStack is displayed in the preview, but no matter where I put navigationTitle, it doesn't show up in the corner like it should. It doesn't show up either in the previews or simulator. What am I missing?