1

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.

ShayDavidson
  • 717
  • 1
  • 7
  • 20
  • 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 Answers1

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