Post

Replies

Boosts

Views

Activity

Reply to SwiftUI alignment Images
I´m a beginner and in my mind i would like to keep the code so flexible as possible. My simple app is only intended for the iPad actualy, but for the future: I don´t know what for a device the user will use. So i thought, i could keep it more flexible and tell him not a explicit width.
Apr ’20
Reply to SwiftUI alignment Images
I can´t remove it into SwiftUI. Because there is no SwiftUI to select.Sorry if i maybe misunderstand you: My stack width is perfect. But the image in this stack isn´t centered on the x and y axes. It´s not exactly the middle of the image. That´s my problem.Please have a look:https://ibb.co/6XTtSzphttps://ibb.co/fd7jdF0https://ibb.co/JcNt6Rzhttps://ibb.co/TR2GLc1ZStack (alignment: .leading) { Image(internImage.imageName) .resizable(resizingMode: .tile) //.aspectRatio(contentMode: .fill) .clipped() }.background(Color.white) .clipped() .cornerRadius(8, antialiased: true) .frame(height: 155) }
Apr ’20