Overlay
extension Element {
func overlay(alignment: Alignment = .center, content: () -> Element?) -> Element
}
Positions the content element within the frame of the target element. The modifier measures the target element, proposes the target element's size to the content element, and then aligns it within the frame of the target element.
Examples
var body: Layout {
VStack {
profilePhoto
.overlay {
button.resizable()
}
Spacer(8)
label
}
}