I tried using multilinetextalignment but my text is not aligning on left of iPhone screen, what is the reason for it?

import SwiftUI

struct lastview: View {

    var img:UIImage

    var texty:String

    var body: some View {

        ScrollView(.vertical){

        Image(uiImage: img)

            .resizable()

            .frame(width: 500, height: 500, alignment: .center)

            Text(texty)

                .multilineTextAlignment(.leading)

                

        }

    }

}

Are you trying to make your texts aligned based on the leading edge of screen? If so, just make the texts span across the screen like this:

HStack { Spacer() Text("Texts here") Spacer() }
I tried using multilinetextalignment but my text is not aligning on left of iPhone screen, what is the reason for it?
 
 
Q