jlainog / UIView-Mask

Easy way to mask a UIView from IB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UIView-Mask

Easy way to mask a UIView from IB

you'll find a category holding this line

@property (nonatomic, strong) IBInspectable UIImage *imgMask;

this does all the magic, so in IB you can find a field to set the image you want to use as a Mask
Img Mask

IB

as you can see it is a UIImageview with this image setted gasmask

and using this image as mask gasmask

so here is the result.
IB

About

Easy way to mask a UIView from IB

License:MIT License


Languages

Language:Objective-C 100.0%