All Projects → CRAnimation → Crrefresh

CRAnimation / Crrefresh

Licence: mit
An easy way to use pull-to-refresh

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Crrefresh

Fused Effects
A fast, flexible, fused effect system for Haskell
Stars: ✭ 501 (-39.78%)
Mutual labels:  effects
Ramjet
Morph DOM elements from one state to another with smooth animations and transitions
Stars: ✭ 5,455 (+555.65%)
Mutual labels:  effects
Postprocessing
A post processing library that provides the means to implement image filter effects for three.js.
Stars: ✭ 830 (-0.24%)
Mutual labels:  effects
Pulltorefreshkit
【Deprecated】Pull to refresh in Swift, easy to use, easy to customize(下拉刷新/QQ/淘宝/优酷/雅虎天气/大众点评)
Stars: ✭ 533 (-35.94%)
Mutual labels:  pull-to-refresh
Super Blur
Screen and UI gaussian blur for Unity
Stars: ✭ 543 (-34.74%)
Mutual labels:  effects
Vue Pull To
⚡️ A pull-down refresh and pull-up load more and infinite scroll component for Vue.js --Vue下拉刷新组件
Stars: ✭ 708 (-14.9%)
Mutual labels:  pull-to-refresh
Pulltomakeflight
Custom animated pull-to-refresh that can be easily added to UIScrollView
Stars: ✭ 497 (-40.26%)
Mutual labels:  pull-to-refresh
Swiperefreshlayout
swipeRefreshLayout refresh pull-to-refresh
Stars: ✭ 26 (-96.87%)
Mutual labels:  pull-to-refresh
Pullrefreshlayout
下拉刷新,上拉加载,真实的回弹(overscroll)效果(媲美qq),且大小只有37KB(是其他主流刷新库或回弹库的1/2,1/3,甚至是1/4),同时,自定义header和footer,可以实现任何你想的到的功能(例如:自动触发加载更多、二级刷新等)
Stars: ✭ 639 (-23.2%)
Mutual labels:  pull-to-refresh
Visualeffectview
Dynamic blur background view with tint color (UIVisualEffectView subclass) 📱
Stars: ✭ 795 (-4.45%)
Mutual labels:  effects
Bow
🏹 Bow is a cross-platform library for Typed Functional Programming in Swift
Stars: ✭ 538 (-35.34%)
Mutual labels:  effects
Smartrefreshlayout
🔥下拉刷新、上拉加载、二级刷新、淘宝二楼、RefreshLayout、OverScroll,Android智能下拉刷新框架,支持越界回弹、越界拖动,具有极强的扩展性,集成了几十种炫酷的Header和 Footer。
Stars: ✭ 23,185 (+2686.66%)
Mutual labels:  pull-to-refresh
Glasscord
[BUGFIXES ONLY, SUPPORT WILL DROP MAR 1, 2021] Injecting composition effects into Electron applications!
Stars: ✭ 737 (-11.42%)
Mutual labels:  effects
Web Pull To Refresh
A native-like JavaScript pull to refresh implementation for the web.
Stars: ✭ 530 (-36.3%)
Mutual labels:  pull-to-refresh
Entitypostprocessor2d
A unity package for applying post-processing effects to assembled 2D assets
Stars: ✭ 17 (-97.96%)
Mutual labels:  effects
React Native Ultimate Listview
A high performance FlatList providing customised pull-to-refresh | auto-pagination & infinite-scrolling | gridview layout | swipeable-row.
Stars: ✭ 497 (-40.26%)
Mutual labels:  pull-to-refresh
Textfieldeffects
Custom UITextFields effects inspired by Codrops, built using Swift
Stars: ✭ 5,708 (+586.06%)
Mutual labels:  effects
Pullrefresh
前端, 下拉刷新
Stars: ✭ 7 (-99.16%)
Mutual labels:  pull-to-refresh
Windowscompositionsamples
Windows Composition Samples the place for getting the latest code samples and demos using Windows.UI.Xaml and Windows.UI.Composition to make beautiful Universal Windows Platform applications.
Stars: ✭ 922 (+10.82%)
Mutual labels:  effects
Liquid Pull To Refresh
🔁 A custom refresh indicator for flutter.
Stars: ✭ 769 (-7.57%)
Mutual labels:  pull-to-refresh

Version License Platform Support  Language

CRRefresh an easy way to use pull-to-refresh, If you want to customize its UI style, you just need conform the specified protocol. We will not regularly updated some nice dynamic effect, at the same time also welcome to write to me ~

中文介绍 / 博客介绍

Screenshots

NormalAnimator SlackLoadingAnimator RamotionAnimator
FastAnimator

Requirements

  • Xcode 8 or later
  • iOS 8.0 or later
  • ARC
  • Swift 3.0 or later

Features

  • Support UIScrollView and its subclasses UICollectionView UITableView UITextView
  • Pull-Down to refresh and Pull-Up to load more
  • Support customize your own style(s)

Installation

CocoaPods

CocoaPods is the recommended way to add CRRefresh to your project.

Add a pod entry for CRRefresh to your Podfile.

pod 'CRRefresh'

Second, install CRRefresh into your project:

pod install

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate CRRefresh into your Xcode project using Carthage, specify it in your Cartfile:

github "CRAnimation/CRRefresh"

Run carthage update to build the framework and drag the built CRRefresh.framework (in Carthage/Build/iOS folder) into your Xcode project (Linked Frameworks and Libraries in Targets).

Manually

  1. Download the latest code version .
  2. Open your project in Xcode,drag the CRRefresh folder into your project. Make sure to select Copy items when asked if you extracted the code archive outside of your project.
  3. You need it with import CRRefresh.

Usage

Add CRRefresh to your project

import CRRefresh

Add pull-to-refresh

/// animator: your customize animator, default is NormalHeaderAnimator
tableView.cr.addHeadRefresh(animator: NormalHeaderAnimator()) { [weak self] in
    /// start refresh
    /// Do anything you want...
    DispatchQueue.main.asyncAfter(deadline: .now() + 2, execute: {
        /// Stop refresh when your job finished, it will reset refresh footer if completion is true
        self?.tableView.cr.endHeaderRefresh()
    })
}
/// manual refresh
tableView.cr.beginHeaderRefresh()

Add infinite-scrolling

/// animator: your customize animator, default is NormalFootAnimator
tableView.cr.addFootRefresh(animator: NormalFootAnimator()) { [weak self] in
    /// start refresh
    /// Do anything you want...
    DispatchQueue.main.asyncAfter(deadline: .now() + 2, execute: {
        /// If common end
        self?.tableView.cr.endLoadingMore()
        /// If no more data
        self?.tableView.cr.noticeNoMoreData()
		/// Reset no more data
		self?.tableView.cr.resetNoMore()
    })
}

Customize Style

Customize refresh need conform the CRRefreshProtocol protocol.

public protocol CRRefreshProtocol {
    /// Customize view
    var view: UIView {get}
    
    /// View insets
    var insets: UIEdgeInsets {set get}
    
    /// The height of the trigger to refresh
    var trigger: CGFloat {set get}
    
    /// The height of the animation is executed
    var execute: CGFloat {set get}
    
    /// Start refresh
    mutating func refreshBegin(view: CRRefreshComponent)
    
    /// End refresh
    mutating func refreshEnd(view: CRRefreshComponent, finish: Bool)
    
    /// Refresh the progress changes
    mutating func refresh(view: CRRefreshComponent, progressDidChange progress: CGFloat)
    
    /// Refresh the state changes
    mutating func refresh(view: CRRefreshComponent, stateDidChange state: CRRefreshState)
}

Remove

tableView.cr.removeFooter()
tableView.cr.removeHeader()

Contribution

You are welcome to contribute to the project by forking the repo, modifying the code and opening issues or pull requests.

Contacts

If you wish to contact me

License

CRRefresh is released under the MIT license. See LICENSE for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].