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.

Indigon
  • 663
  • 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.

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