项目作者: vkozlovskyi

项目描述 :
Colorful pull-to-refresh view
高级语言: Swift
项目地址: git://github.com/vkozlovskyi/JellyView.git
创建时间: 2016-04-28T13:12:29Z
项目社区:https://github.com/vkozlovskyi/JellyView

开源协议:MIT License

下载


JellyView

Version
License
Platform

Overview

JellyView represents a simple, colorful pull-to-refresh pattern for updating content in a fun animated way. You can set an array of colors that will be changing along with the content. Several options available for customizing animation.

Requirements

iOS 10

Installation

JellyView is available through CocoaPods. To install it, simply add the following line to your Podfile:

  1. pod 'JellyView'

Manual installation

Just add JellyView folder into your project.

Usage

  1. import JellyView
  2. // Choose the side of the screen: .left, .right, .top or .bottom
  3. // Provide an array of colors for the background
  4. let jellyView = JellyView(side: .left, colors: colors)
  5. view.addSubview(jellyView)
  6. // Add custom view inside:
  7. jellyView.infoView = createInfoView()
  8. // Change various settings for customizing animation and the shape, like this:
  9. jellyView.settings.jellyMass = 1.1
  10. jellyView.settings.innerViewOffset = -20
  11. // Use closures for tracking events:
  12. jellyView.didStartDragging { }
  13. jellyView.actionDidFire { }
  14. jellyView.actionDidCancel { }
  15. jellyView.didEndDragging { }

Demo

Check out the Example project.

Author

Vladimir Kozlovskyi, vlad.kozlovskyi@gmail.com

Licence

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