Latest 0.3.1
Homepage https://github.com/Alex1989Wang/JWWaveView
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform
Translation

JWWaveView provides a convenient way to add water-waving effect to any of your UIView instance.

JWWaveView is made possible by using CAReplicatorLayer as its core. Comparing to using timer to update the wave path continuously to get the water-waving effect, it’s more efficient.

Some comparisons and measurements carried out between timer-driven waving animation and CAReplicatorLayer-based animation are laid out in this blog post.

Requirements

  • iOS 8.0+
  • ARC

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Pause and unpause wave view:

water-waving effect pause and unpause

Adding wave view to table view cells:

water-waving effect

Features

Done

  • [x] multiple cycles of waves are supported
  • [x] pause and unpause wave animation
  • [x] start with user-specified wave phase shift

To do

  • [ ] two waves overlapping to provide depth
  • [ ] convenient category should be added

Installation with CocoaPods

CocoaPods is a dependency manager for developing iOS or OSX apps, which automates and simplifies the process of using 3rd-party libraries in your projects. See the "Getting Started" guide for more information. You can install it with the following command:

$ gem install cocoapods

Podfile

To integrate JWWaveView into your Xcode project using CocoaPods, simply add the following line to your Podfile:

pod 'JWWaveView'

Then, run the following command:

$ pod install

Author

Alex1989Wang, [email protected]

License

JWWaveView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "JWWaveView",
    "version": "0.3.1",
    "summary": "Providing a water waving effect for any of your UIView instance.",
    "description": "JWWaveView offers an easy way to add water waving effect to parts of your UIView instances. nnJWWaveView is made possible by using CAReplicatorLayer as its core. Comparing to using timer to update the wave path continuously to get the water-waving effect, it's more efficient.",
    "homepage": "https://github.com/Alex1989Wang/JWWaveView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Alex1989Wang": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Alex1989Wang/JWWaveView.git",
        "tag": "0.3.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "JWWaveView/Classes/*"
}

Pin It on Pinterest

Share This