title: Vertically centering text in Swift UI
body: <p><a href="https://i.stack.imgur.com/MnO6i.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MnO6i.png" alt="enter image description here"></a></p>
  
  <p>I want the "$0.00" to be in the middle of the screen but I can't figure out how to do it. </p>
  
  <p>This is my code:</p>
  
  <pre><code>    var body: some View {
      NavigationView {
          ScrollView {
              VStack(alignment: .center) {
                  Text(String(format: "$%.2f", (dolaresVM.dolares.last?.v)!))
                      .font(.largeTitle)
              }.frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity)
              .edgesIgnoringSafeArea(.all)
  
  
  
          }.navigationBarTitle("Test")
              .onAppear(perform: self.dolaresVM.fetchDolares)
      }
  }
  </code></pre>
  
  <p>What am I doing wrong?</p>