I tried applying a layer mask in iOS (iOS12) on the layer of a UIStackView. The mask doesn't work and I still see the UIStackView whole.
Asked
Active
Viewed 635 times
1
-
I am pretty sure the base layer of a UIStackView is a CATransformLayer so properties such as mask to bounds border color and others won’t work. – agibson007 Dec 05 '18 at 12:44
1 Answers
3
Apparently, you can't mask UIStackViews! When I wrapped the stack view in a regular UIView, and applied the mask on it - the masking started to work.

ShayDavidson
- 717
- 1
- 7
- 20
-
Detailed answer in this question: https://stackoverflow.com/questions/34211738/can-you-give-uistackview-borders – ShayDavidson Dec 06 '18 at 13:07