TL;DR
I just want to know if there is any way to disable user interaction only for the masked portion of the view.
Here're the scenario:
I have two views View A, View B, both are of Equal Width and Equal Height.
View B is on top of View A.
I applied a mask (CAShapeLayer) on View B at the bottom to see the contents (Two buttons) of View A
Since the View B has a mask, I am only able to see View A's contents, but I am not able to interact with it.
Any help would be appreciated. Thanks.
Make you View B as clear color and Try
UIView+ColorOfPoint.h
andUIView+ColorOfPoint.m
files in your project UIView+ColorOfPoint and user below code in your view controller or subclass of your view .. Sample Project I am using below code in UIView subclass(custom class).