All Projects → anaglik → Periscopypulltorefresh

anaglik / Periscopypulltorefresh

Licence: mit
Pull-To-Refresh view inspired by Periscope application written in swift

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Periscopypulltorefresh

Swiperefreshlayout
swipeRefreshLayout refresh pull-to-refresh
Stars: ✭ 26 (-80.6%)
Mutual labels:  pull-to-refresh
Flutter refresh
A Flutter plugin for refreshing every scrollable view by pulling down-up.
Stars: ✭ 70 (-47.76%)
Mutual labels:  pull-to-refresh
Pull To Refresh
ESPullToRefresh is developed and maintained by Vincent Li. If you have any questions or issues in using ESPullToRefresh, welcome to issue. If you want to contribute to ESPullToRefresh, Please submit Pull Request, I will deal with it as soon as possible.
Stars: ✭ 1,591 (+1087.31%)
Mutual labels:  pull-to-refresh
Crrefresh
An easy way to use pull-to-refresh
Stars: ✭ 832 (+520.9%)
Mutual labels:  pull-to-refresh
Ultimaterefreshview
UltimateRefreshView 实现下拉刷新,上拉加载更多的轻量级库;支持RecyclerView ,ListView ,ScrollView & WebView
Stars: ✭ 64 (-52.24%)
Mutual labels:  pull-to-refresh
Fungamerefresh
好玩的下拉刷新控件,让我们一起来回味童年
Stars: ✭ 1,307 (+875.37%)
Mutual labels:  pull-to-refresh
Vue Pull To
⚡️ A pull-down refresh and pull-up load more and infinite scroll component for Vue.js --Vue下拉刷新组件
Stars: ✭ 708 (+428.36%)
Mutual labels:  pull-to-refresh
Xrefreshlayout
【已过时,不再更新,请使用更强大的SmartRefreshLayout!】A refresh layout(无侵入下拉刷新和加载布局), can refresh RecyclerView for all LayoutManager, NestedScrollView。
Stars: ✭ 127 (-5.22%)
Mutual labels:  pull-to-refresh
Pulltorefresh
This component implements pure pull-to-refresh logic and you can use it for developing your own pull-to-refresh animations
Stars: ✭ 1,150 (+758.21%)
Mutual labels:  pull-to-refresh
Liquidrefreshlayout
Liquid Refresh Layout is a simple SwipeToRefresh library that helps you easily integrate SwipeToRefresh and performs simple clean liquid animation
Stars: ✭ 114 (-14.93%)
Mutual labels:  pull-to-refresh
Refresher
DEPRECATED: Pull to refresh in Swift
Stars: ✭ 885 (+560.45%)
Mutual labels:  pull-to-refresh
Pulltorefresh H5 Iscroll
基于IScroll5的PullToRefresh实现.。提供多套皮肤机制,便于拓展!
Stars: ✭ 56 (-58.21%)
Mutual labels:  pull-to-refresh
React Native Rk Pull To Refresh
a pull to refresh component for react-native, same api on both android and ios
Stars: ✭ 100 (-25.37%)
Mutual labels:  pull-to-refresh
Pullrefresh
前端, 下拉刷新
Stars: ✭ 7 (-94.78%)
Mutual labels:  pull-to-refresh
Minirefresh
优雅的H5 下拉刷新。零依赖,高性能,多主题,易拓展。(A Graceful HTML5 Drop-Down-Refresh Plugin. )
Stars: ✭ 1,525 (+1038.06%)
Mutual labels:  pull-to-refresh
Liquid Pull To Refresh
🔁 A custom refresh indicator for flutter.
Stars: ✭ 769 (+473.88%)
Mutual labels:  pull-to-refresh
Qrefreshlayout
下拉刷新,上拉加载更多,自动加载更多,用法同SwipeRefreshLayout,兼容所有view,兼容nested滚动,可以自定义header footer,支持下拉到二楼
Stars: ✭ 75 (-44.03%)
Mutual labels:  pull-to-refresh
Vue Pull To Refresh
vue.js,refresh,load more,Vue2.0 上下拉刷新
Stars: ✭ 129 (-3.73%)
Mutual labels:  pull-to-refresh
Mrefresh
This pod enables you to add pull-to-refresh mechanism to your scrollviews and tableviews and use svg patterns in your refreshing view's layers.
Stars: ✭ 123 (-8.21%)
Mutual labels:  pull-to-refresh
Pull To Make Soup
Custom animated pull-to-refresh that can be easily added to RecyclerView
Stars: ✭ 1,443 (+976.87%)
Mutual labels:  pull-to-refresh

PeriscopyPullToRefresh for iOS

Pull-To-Refresh view inspired by Periscope application (written in Swift). It works with UIScrollView and its subclasses.

Usage

Simply create and assign object of PeriscopyTitleView's class as titleView of your current UINavigationItem. You can customize font/color of labels presented in that view. Title string is taken from UINavigationItem but you can also assign it directly.

When you "activate" mechanism, refreshAction block is called.

override func viewDidLoad() {
    super.viewDidLoad()
    guard let navigationController = self.navigationController else { return }

    let titleView = PeriscopyTitleView(frame: CGRect(x: 0.0, y: 0.0, width: 160.0, height: navigationController.navigationBar.frame.height), attachToScrollView: tableView, refreshAction: {  
	  		//your 'refreshing' code 			  
	})

	//customization
    titleView.titleLabel.textColor = .white
    titleView.releaseLabel.textColor = .white
    titleView.releaseLabel.highlightedTextColor = UIColor(red:207/255.0, green:240/255, blue:158/255, alpha:1.0)

    self.navigationItem.titleView = titleView
}

If you would like to use loading animation on UINavigationBar, please use methods from PeriscopyNavBarExtension.swift file. You don't need to add any png file to your asset catalog, 'stripes' are drawn using CoreGraphics. Example:

let view = navigationController.navigationBar.startLoadingAnimation()
//keep reference of 'animating' view
//..
navigationController.navigationBar.stopLoadingAnimationWithView(view)  

Demo app is also included.

Requirements

Swift 3

Installation

Just drop PeriscopyTitleView.swift file in your project. If you want to use loading animation on UINavigationBar, please add PeriscopyNavBarExtension.swift file as well.

Author

Andrzej Naglik, [email protected]

License

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

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].