Latest 3.0.0
Homepage https://github.com/rockbarato/Patience
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

License
Plaform
Language
Tag

Installation

Instead of adding the source files directly to your project, you may want to consider using CocoaPods to manage your dependencies. Follow the instructions on the CocoaPods site to install the gem, and specify Patience as a dependency in your Podfile with:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, "8.0"

target "TargetName" do
    pod 'Patience', '~> 3.0.0'
end

But if you want to do it the old fashioned way, just add Patience.swift and Spinner.swift files directly to your project.

Requirements

  • iOS 8.0 and above
  • Swift 4.0

Note: Patience v3.0.0 is backward compatible till Swift 3.

Usage

Patience.show()

or if you are implementing it on a UITableView you can do:

Patience.show(self.tableView, true)

You can dismiss the loader in this way:

Patience.hide()

TODO

  • [x] Replace UIActivityIndicator by a spinner.
  • [x] Swift 4 Support.
  • [ ] More customization.
  • [ ] Redraw on rotate.

Collaboration

Feel free to collaborate with ideas, issues and/or pull requests.

License

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

Latest podspec

{
    "name": "Patience",
    "platforms": {
        "ios": "8.0"
    },
    "summary": "Patience is an easy to use Spinner made in Swift 4",
    "requires_arc": true,
    "version": "3.0.0",
    "license": "MIT",
    "authors": {
        "Felix Ayala": "[email protected]"
    },
    "homepage": "https://github.com/rockbarato/Patience",
    "source": {
        "git": "https://github.com/rockbarato/Patience.git",
        "tag": "3.0.0"
    },
    "frameworks": "UIKit",
    "source_files": [
        "Patience/**/Patience.{swift}",
        "Patience/**/Spinner.{swift}"
    ],
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This