I created a window with the following code
WindowGroup {
MainView()
.ornament(attachmentAnchor: .scene(alignment: .bottom)) {
OrnementView(title: "Bottom")
}
.ornament(attachmentAnchor: .scene(alignment: .top)) {
OrnementView(title: "Top")
}
.ornament(attachmentAnchor: .scene(alignment: .leading)) {
OrnementView(title: "Leading")
}
.ornament(attachmentAnchor: .scene(alignment: .trailing)) {
OrnementView(title: "Trailing")
}
.frame(minWidth: 100, maxWidth: 400, minHeight: 100, maxHeight: 400)
.border(.green)
}
It shows me this
When I resize my Window the ornaments do not follow the Window