To run the example project, clone the repo, and run pod install
from the Example directory first.
- iOS 9.0+
ClickableImage is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ClickableImage'
ClickableImage expands UIImageView by adding 3 methods and 1 computed property.
Methods:
enableClickableExpand()
- This method enables the image to become clickable to expanddisableClickableExpand()
- This method disables the image to become clickable to expandtoggleClickableExpand()
- This method toggles the state of whether the image is able to be clicked to expand
Properties:
isClickableExpandEnabled
- This property returns aBool
that represents if the image is able to be clicked to be expanded or not
rrainn, Inc., [email protected]
ClickableImage is available under the MIT license. See the LICENSE file for more info.