I try to align content on top of page. It works but as soon as I add a NavigationView, it doesn't work anymore.
import SwiftUI
struct Stats: View {
var body: some View {
NavigationView { // <- OK without navigation view
VStack {
Text("Stats")
Spacer()
}
}
}
}
Seems a basic problem, but didn't succeed to work it out :( Thanks