CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

Patience 3.0.0

Patience 3.0.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Felix Ayala.



Patience 3.0.0

  • By
  • Felix Ayala

Patience




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

  • Replace UIActivityIndicator by a spinner.
  • 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.