How to keep Text as leading alignment after set Text().frame(maxWidth: .infinity)
问题 It could be a simple case, but I couldn't find a solution. Here is my code , using the GeometryReader to set the relative layout of SwiftUI view size like Image. The issue in on the last VStack, I want to background of Text to go to the right end of VStack. Thus, I set it as Text("Haibo: asdasd").frame(maxWidth: .infinity) but after that I found the text became to horizontal centered and not followed the VStack alignment: .leading. import SwiftUI struct ContentView: View { var body: some View