As you can see, the code creates a grid of buttons. Every time a button is clicked it should display a popover.
After running the application and during the interaction of the user with the window (resizing), the popovers sometimes are not displayed and sometimes are shown in an offseted position.
I am running on a mac mini with an wide monitor and Xcode: 15.3 & macOS: 14.2
Post
Replies
Boosts
Views
Activity
Thank you very much for such a detailed answer.
I was afraid that, due to my poor skills in writing English, my post will not be understandable. But you got the point of my question.
Since I have good knowledge of C & C++ I usually try to interpret SwiftUI to these languages but I think it is not a good practice, because there are no straight equivalents. From this point of view, SwiftUI (and Swift) syntax looks to my eyes a bit chaotic.
Now it is very clear to me and I'll explore the SwiftUI documentation much easier