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 - SimformSolutionsPvtLtd/SSCustomPullToRefresh: SSCustomPullToRefresh is an open-source library that uses UIKit to add an animation to the pull to refresh view in a UITableView and UICollectionView.

BranchesTags
Open more actions menu

Latest commit

 

History

31 Commits
31 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/ISSUE_TEMPLATE
.github/ISSUE_TEMPLATE
 
 
.swiftpm/xcode/package.xcworkspace
.swiftpm/xcode/package.xcworkspace
 
 
Example
Example
 
 
Sources/SSCustomPullToRefresh
Sources/SSCustomPullToRefresh
 
 
Tests
Tests
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
PULL_REQUEST_TEMPLATE.md
PULL_REQUEST_TEMPLATE.md
 
 
Package.swift
Package.swift
 
 
README.md
README.md
 
 
SSCustomPullToRefresh.podspec
SSCustomPullToRefresh.podspec
 
 
pulseAnimation.gif
pulseAnimation.gif
 
 
spinnerAnimation.gif
spinnerAnimation.gif
 
 
waveAnimation.gif
waveAnimation.gif
 
 
waveSingleColor.gif
waveSingleColor.gif
 
 

Repository files navigation

SSCustomPullToRefresh

SSCustomPullToRefresh is an open-source library that uses UIKit to add an animation to the pull to refresh view in a UITableView and UICollectionView.

Swift Version License Carthage Compatible SwiftPM Compatible Platform PRs Welcome

Animation Type

Spinner Animation Pulse Animation Wave Animation Wave Animation
Alt text Alt text Alt text Alt text

Requirements

  • iOS 10.0+
  • Xcode 11+

Installation

CocoaPods

  • You can use CocoaPods to install SSCustomPullToRefresh by adding it to your Podfile:

     use_frameworks!
     pod 'SSCustomPullToRefresh'
    
  • import SSCustomPullToRefresh

Manually

  • Download and drop SSCustomPullToRefresh folder in your project.
  • Congratulations!

Swift Package Manager

  • When using Xcode 11 or later, you can install SSCustomPullToRefresh by going to your Project settings > Swift Packages and add the repository by providing the GitHub URL. Alternatively, you can go to File > Swift Packages > Add Package Dependencies...
dependencies: [
    .package(url: "https://github.com/mobile-simformsolutions/SSCustomPullToRefresh.git", from: "1.0.1")
]

Carthage

  • Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. You can install Carthage with Homebrew using the following command:
$ brew update
$ brew install carthage

To integrate SSCustomPullToRefresh into your Xcode project using Carthage, add the following line to your Cartfile:

github "mobile-simformsolutions/SSCustomPullToRefresh"

Run carthage to build and drag the SSCustomPullToRefresh(Sources/SSCustomPullToRefresh) into your Xcode project.

How It Works

  • You can use it for any component having a base class as ScrollView like TableView or CollectionView.

1. Spinner Animation

  • SpinnerAnimationView takes image and backgroundColor as an input parameter. You can provide it as per your choice.

    spinnerAnnimation = SpinnerAnimationView(image: UIImage(named: "spinner"), backgroundColor: .purple)           
    spinnerAnnimation.delegate = self   
    spinnerAnnimation.parentView = self.tableView    
    spinnerAnnimation.setupRefreshControl()
    

2. Wave Animation

  • SineWaveAnimationView takes Color as an input parameter.

    sineAnnimation = SineWaveAnimationView(color: .purple)           
    sineAnnimation.delegate = self 
    sineAnnimation.parentView = self.tableView
    sineAnnimation.setupRefreshControl()
    
  • Along with this, you can also provide two different colors and a waveHeight value. You can give a waveHeight value between 5.0 to 50.0.

    sineAnnimation = SineWaveAnimationView(frontColor: .orange, backColor: .purple, waveHeight: 10.0)           
    

3. Pulse Animation

  • PulseAnimationView takes Color as an input parameter. You can provide center circle color, pulse color and background color of your refresh view.

    pulseAnnimation = PulseAnimationView(circleColor: .purple, pulseColor: .purple, 
                                                               pulseViewBackgroundColor: .brown)
    pulseAnnimation.delegate = self   
    pulseAnnimation.parentView = self.tableView
    pulseAnnimation.setupRefreshControl()
    

Delegate

  • The RefreshDelegate methods can be used to notify start and end refresh.

    extension ViewController: RefreshDelegate {           
      func startRefresh() { }   
      func endRefresh() { }
    }
    

Android Library:

  • Check our android Library also - SSPullToRefresh

License

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

Inspired

  • SSCustomPullToRefresh(SineWaveAnimationView) inspired from WaveAnimationView

About

SSCustomPullToRefresh is an open-source library that uses UIKit to add an animation to the pull to refresh view in a UITableView and UICollectionView.

Topics

carthagecocoapodsiosswiftswiftpackagemanager

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

72 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Packages

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.