ShayDavidson
ShayDavidson

Reputation: 791

iOS layer masking doesn't work on UIStackView

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.

Upvotes: 1

Views: 706

Answers (1)

ShayDavidson
ShayDavidson

Reputation: 791

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.

Upvotes: 3

Related Questions