Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Onix-Systems/RainyRefreshControl

Simple refresh control for iOS based on SpriteKit and Core Graphics
https://github.com/Onix-Systems/RainyRefreshControl

Last synced: 3 months ago
JSON representation

Simple refresh control for iOS based on SpriteKit and Core Graphics

Awesome Lists containing this project

README

        

# RainyRefreshControl

[![Swift 3.0](https://img.shields.io/badge/Swift-3.0-orange.svg?style=flat)](https://developer.apple.com/swift/)
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/RainyRefreshControl.svg)](https://img.shields.io/cocoapods/v/RainyRefreshControl.svg)
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Platforms iOS](https://img.shields.io/badge/Platforms-iOS-lightgray.svg?style=flat)](https://developer.apple.com/swift/)
[![Xcode 8.0+](https://img.shields.io/badge/Xcode-8.0+-blue.svg?style=flat)](https://developer.apple.com/swift/)

Simple refresh control for iOS based on SpriteKit and Core Graphics.

Project inspired by [concept](https://dribbble.com/shots/2242263--1-Pull-to-refresh-Freebie-Weather-Concept) of [Yup Nguyen](https://dribbble.com/yupnguyen)

![capture_umbrella_refresh](gif/umbrella_refresh.gif "capture_umbrella_refresh")

## Installation

### Installation with CocoaPods

To integrate RainyRefreshControl into your Xcode project using CocoaPods, specify it in your `Podfile`:

```ruby
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'

target 'TargetName' do
pod 'RainyRefreshControl'
end
```

Then, run the following command:

```bash
$ pod install
```

### Installation with Carthage

[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with [Homebrew](http://brew.sh/) using the following command:

```bash
$ brew update
$ brew install carthage
```

To integrate RainyRefreshControl into your Xcode project using Carthage, specify it in your `Cartfile`:

```ogdl
github "Onix-Systems/RainyRefreshControl"
```

Run `carthage update` to build the framework and drag the built `RainyRefreshControl.framework` into your Xcode project.

## Usage

Just import RainyRefreshControl framework into your class and add it to UITableView or UICollectionView:

```swift
let refresh = RainyRefreshControl()
refresh.addTarget(self, action: #selector(ViewController.doRefresh), for: .valueChanged)
tableView.addSubview(refresh)

```

## Who's behind this?

[Onix-Systems](https://onix-systems.com) is IT Outsourcing, web design and mobile application development company bringing expert execution, situated in Ukraine.

[](https://onix-systems.com)

## License

RainyRefreshControl is released under the MIT license. See [LICENSE](LICENSE) for details.