Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rrainn/clickableimage
📦 CocoaPod Package - Extension that users to tap UIImageView's to expand them
https://github.com/rrainn/clickableimage
Last synced: 23 days ago
JSON representation
📦 CocoaPod Package - Extension that users to tap UIImageView's to expand them
- Host: GitHub
- URL: https://github.com/rrainn/clickableimage
- Owner: rrainn
- License: mit
- Created: 2018-08-22T01:19:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-22T01:21:17.000Z (over 6 years ago)
- Last Synced: 2024-12-09T16:55:55.766Z (30 days ago)
- Language: Swift
- Size: 159 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ClickableImage
[![Version](https://img.shields.io/cocoapods/v/ClickableImage.svg?style=flat)](https://cocoapods.org/pods/ClickableImage)
[![License](https://img.shields.io/cocoapods/l/ClickableImage.svg?style=flat)](https://cocoapods.org/pods/ClickableImage)
[![Platform](https://img.shields.io/cocoapods/p/ClickableImage.svg?style=flat)](https://cocoapods.org/pods/ClickableImage)## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
- iOS 9.0+
## Installation
ClickableImage is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'ClickableImage'
```## Usage
ClickableImage expands UIImageView by adding 3 methods and 1 computed property.
**Methods**:
- `enableClickableExpand()` - This method enables the image to become clickable to expand
- `disableClickableExpand()` - This method disables the image to become clickable to expand
- `toggleClickableExpand()` - This method toggles the state of whether the image is able to be clicked to expand**Properties**:
- `isClickableExpandEnabled` - This property returns a `Bool` that represents if the image is able to be clicked to be expanded or not
## Author
rrainn, Inc., [email protected]
## License
ClickableImage is available under the MIT license. See the LICENSE file for more info.