GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Yalantis/PullToMakeSoup: Custom animated pull-to-refresh that can be easily added to UIScrollView

BranchesTags
Open more actions menu

Latest commit

 

History

68 Commits
68 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
Carthage/Checkouts
Carthage/Checkouts
 
 
PullToMakeSoup.xcodeproj
PullToMakeSoup.xcodeproj
 
 
PullToMakeSoup
PullToMakeSoup
 
 
PullToMakeSoupDemo.xcodeproj
PullToMakeSoupDemo.xcodeproj
 
 
PullToMakeSoupDemo.xcworkspace
PullToMakeSoupDemo.xcworkspace
 
 
PullToMakeSoupDemo
PullToMakeSoupDemo
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.swift-version
.swift-version
 
 
Cartfile
Cartfile
 
 
Cartfile.resolved
Cartfile.resolved
 
 
LICENSE
LICENSE
 
 
Podfile
Podfile
 
 
PullToMakeSoup.podspec
PullToMakeSoup.podspec
 
 
README.md
README.md
 
 

Repository files navigation

PullToMakeSoup Carthage compatible

Custom animated pull-to-refresh that can be easily added to UIScrollView

Yalantis

Check this article on our blog to know more details about animations implementation

Inspired by this project on dribble

Requirements

  • iOS 8.0+
  • Xcode 8
  • Swift 3
  • Portrait orientation

Carthage

github "Yalantis/PullToMakeSoup" ~> 2.0

Installing with CocoaPods

use_frameworks!
pod 'PullToMakeSoup', '~> 2.0'

Usage

At first, import PullToMakeSoup framework:

import PullToMakeSoup

Create refresher:

let refresher = PullToMakeSoup()

Add refresher to your UIScrollView subclass in 'viewDidAppear' method and provide action block:

override func viewDidAppear(animated: Bool) {
    super.viewDidAppear(animated)
    tableView.addPullToRefresh(refresher) {
        // action to be performed (pull data from some source)
    }
}

After the action is completed and you want to hide the refresher:

tableView.endRefreshing()

You can also start refreshing programmatically:

tableView.startRefreshing()

Component was implemented based on customizable pull-to-refresh

Let us know!

We’d be really happy if you sent us links to your projects where you use our component. Just send an email to [email protected] And do let us know if you have any questions or suggestion regarding the animation.

P.S. We’re going to publish more awesomeness wrapped in code and a tutorial on how to make UI for iOS (Android) better than better. Stay tuned!

License

The MIT License (MIT)

Copyright © 2017 Yalantis

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

About

Custom animated pull-to-refresh that can be easily added to UIScrollView

yalantis.com/

Topics

animationcarthageiospulltomakesouprefreshesswiftuiscrollviewyalantis

Resources

Readme
MIT license

Contributing

Contributing
Activity
Custom properties

Stars

1.9k stars

Watchers

61 watching

Forks

207 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.