Closed darkForestCat closed 3 years ago
Hello,
There are several approaches you can take. The button is accessible to you from popupContentView.popupCloseButton
. You can then calculate where it is and do what you need to do. A better approach is to implement positionPopupCloseButton(_:)
and position the close button in your hierarchy. You then take ownership of the button and its position.
Question
I am using rounded close button.What is the proper way to get it's center, minX and minY, frame or something that could help me drawing my stuff behind it :)