I've got a problem with two of my buttons in my Xcode project. After adding two views above them to create a border around them they cannot be clicked anymore. After removing them again the buttons work but adding the back causes them to not work.
Here's my view hierarchy in my project:
Before:
-mainView
-scrollView
-contentView
-stackView
-stackView
-stackView
-stackView
-Button1
-Button2
After:
-mainView
-scrollView
-contentView
-stackView
-stackView
-stackView
-stackView
-uiView (new View)
-uiView (new View)
-Button1
-uiView (new View)
-uiView (new View)
-Button2
Is it because there are too many views?
Thank you very much, if you need any more pieces of information just write a comment and I'll try to help in the next edit.