Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RamonGilabert/Ripple
Remember there's no such thing as a small act of kindness. Every act creates a ripple with no logical end.
https://github.com/RamonGilabert/Ripple
Last synced: 13 days ago
JSON representation
Remember there's no such thing as a small act of kindness. Every act creates a ripple with no logical end.
- Host: GitHub
- URL: https://github.com/RamonGilabert/Ripple
- Owner: RamonGilabert
- License: other
- Created: 2016-03-25T11:50:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-04T09:24:35.000Z (over 6 years ago)
- Last Synced: 2024-10-31T23:24:00.411Z (13 days ago)
- Language: Swift
- Size: 774 KB
- Stars: 83
- Watchers: 6
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
![Ripple](https://github.com/RamonGilabert/Ripple/blob/master/Resources/cover.png)
Ripple is a small convenience to create ripples in your app. With just a line of code, you can do beautiful things.
## Code
There are two types of ripples, the one times ones, or the repeated ones:
![Ripple](https://github.com/RamonGilabert/Ripple/blob/master/Resources/example.png)
#### Droplets
By just setting the center and the view the droplet should be added to, you are going to have a droplet effect.
```swift
droplet(center: CGPoint, view: UIView)
```#### Ripples
There are many ways to customize the ripple effect, the simplest one of all is just calling the following lines, which will repeat infinite times.
```swift
ripple(center: CGPoint, view: UIView)
```There is, in both cases some configuration you can find, read the documentation for more information. :) Here's the gif of the demo for you to have an idea of what Ripple is:
![Ripple](https://github.com/RamonGilabert/Ripple/blob/master/Resources/demo.gif)
## Installation
**Ripple** is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'Ripple'
```**Ripple** is also available through [Carthage](https://github.com/Carthage/Carthage). To install just write into your Cartfile:
```ruby
github 'RamonGilabert/Ripple'
```## Author
Ramon Gilabert with ♥️
## Contribute
I would love you to contribute to **Ripple**, check the [CONTRIBUTING](https://github.com/RamonGilabert/Ripple/blob/master/CONTRIBUTING.md) file for more information.
## License
**Ripple** is available under the MIT license. See the [LICENSE](https://github.com/RamonGilabert/Ripple/blob/master/LICENSE.md) file for more info.