Welcome to the forum
It's difficult to understand what is the problem.
D should occupy the space occupied by the two buttons at the top A and B
What does it mean ? That's not what the drawing shows
Anyway, looking at the drawing, you have several ways:
if you use storyboard (UIKit), it is very easy to position the buttons in a view, either in absolute coordinates or with constraints settings.
you can also create buttons in code setting the correct frame
you could also use a grid, but it is over complex for such a simple thing
If you use SwiftUI , you create 2 HStacks, containing A, B, C and the second D, E ; then you encapsulate them in a VStack ; code would look like
VStack {
Spacer()
HStack {
Spacer()
Button { A }
Spacer()
Button { B }
Spacer()
Button { C }
Spacer()
}
Spacer()
HStack {
Spacer()
Button { D }
Spacer()
Button { E }
Spacer()
}
Spacer()
}
So please explain clearly what you do not know how to do.