All Projects → SimformSolutionsPvtLtd → SSCustomPullToRefresh

SimformSolutionsPvtLtd / SSCustomPullToRefresh

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

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to SSCustomPullToRefresh

BetterMappable
Better Mappable through Property Wrappers using ObjectMapper
Stars: ✭ 26 (-58.06%)
Mutual labels:  carthage, swiftpackagemanager
SSAppUpdater
SSAppUpdater is an open-source framework that compares the current version of the app with the store version and returns the essential details of it like app URL, new app version number, new release note, etc. So you can either redirect or notify the user to update their app.
Stars: ✭ 58 (-6.45%)
Mutual labels:  carthage, swiftpackagemanager
TakeASelfie
An iOS framework that uses the front camera, detects your face and takes a selfie.
Stars: ✭ 36 (-41.94%)
Mutual labels:  carthage
Mechanica
A cross-platform library of Swift utils to ease your iOS | macOS | watchOS | tvOS and Linux development.
Stars: ✭ 27 (-56.45%)
Mutual labels:  carthage
StickyHeader
📐 Library helping to add a sticky header to an UIScrollView
Stars: ✭ 18 (-70.97%)
Mutual labels:  carthage
JHTAlertController
A custom iOS alert that replaces the stock UIAlertController. Easily style the alert to match your app. Written in Swift for iOS.
Stars: ✭ 58 (-6.45%)
Mutual labels:  carthage
GCXTrustPolicy
SSL pinning and trust validation framework for iOS
Stars: ✭ 21 (-66.13%)
Mutual labels:  carthage
JSONMagic
JSONMagic makes it easy to traverse and parse JSON in Swift.
Stars: ✭ 19 (-69.35%)
Mutual labels:  carthage
Columbus
A feature-rich country picker for iOS, tvOS and watchOS.
Stars: ✭ 23 (-62.9%)
Mutual labels:  carthage
STTextView
📝 STTextView is a light-weight library that adds a placeholder to the UITextView.
Stars: ✭ 36 (-41.94%)
Mutual labels:  carthage
carhacking
car hacking tools
Stars: ✭ 40 (-35.48%)
Mutual labels:  carthage
AckAck
Acknowledgement Plist Generator
Stars: ✭ 37 (-40.32%)
Mutual labels:  carthage
NumPad
Number Pad (inspired by Square)
Stars: ✭ 81 (+30.65%)
Mutual labels:  carthage
DPVideoMerger-Swift
Multiple videos merge in one video with manage scale & aspect ratio and also merge videos to grid matrix layout for Swift.
Stars: ✭ 49 (-20.97%)
Mutual labels:  carthage
PunycodeSwift
PunycodeSwift is a pure Swift library to allows you to encode and decode punycoded strings
Stars: ✭ 19 (-69.35%)
Mutual labels:  carthage
ZVRefreshing
A pure-swift and wieldy refresh component.
Stars: ✭ 29 (-53.23%)
Mutual labels:  carthage
virgil-sdk-x
Virgil Core SDK allows developers to get up and running with Virgil Cards Service API quickly and add end-to-end security to their new or existing digital solutions to become HIPAA and GDPR compliant and more.
Stars: ✭ 27 (-56.45%)
Mutual labels:  carthage
Euclid
Great-circle mathematics helper library for platforms using Swift -
Stars: ✭ 46 (-25.81%)
Mutual labels:  carthage
SwiftMan
Swift extensions and utils classes
Stars: ✭ 31 (-50%)
Mutual labels:  carthage
GCXMulticastDNSKit
Multicast DNS framework for iOS
Stars: ✭ 16 (-74.19%)
Mutual labels:  carthage

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:

License

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

Inspired

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