A button with an image and a title that are masked to allow transparency.
When the button is selected/pressed, you can see through the text/icon which is cut out of a color (or gradient). In the default state the button has an outline and a draws the image and title in color (or gradient).
Use it like a button. Read the header for more specific info, but you'll want to set the icon
, text
, and tintColor
properties.
To run the example project, clone the repo, and run pod install
from the Example directory first.
MaskView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "PXMaskButton"
Daniel Blakemore, [email protected]
PXMaskButton is available under the MIT license. See the LICENSE file for more info.