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.
iOS 10
JellyView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'JellyView'
Just add JellyView folder into your project.
import JellyView
// Choose the side of the screen: .left, .right, .top or .bottom
// Provide an array of colors for the background
let jellyView = JellyView(side: .left, colors: colors)
view.addSubview(jellyView)
// Add custom view inside:
jellyView.infoView = createInfoView()
// Change various settings for customizing animation and the shape, like this:
jellyView.settings.jellyMass = 1.1
jellyView.settings.innerViewOffset = -20
// Use closures for tracking events:
jellyView.didStartDragging { … }
jellyView.actionDidFire { … }
jellyView.actionDidCancel { … }
jellyView.didEndDragging { … }
Check out the Example project.
Vladimir Kozlovskyi, [email protected]
JellyView is available under the MIT license. See the LICENSE file for more info.