I created a Snackbar style messages in Swift for iOS. I need to understand to which view I add the Snackbar as a subview. Example for one of the problems: I have a scrollview with a lot of content. When you press a button somewhere inside the UIScrollView I want the message to pop from the bottom of screen and it will stay at the bottom of the screen even if the user keeps scrolling the UIScrollView. How do I determine which view is above the scrollview for me to add snackbar as a subview to it?