CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.
TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Oct 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Felix Ayala.
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 yourPodfile
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.
Note:
Patience
v3.0.0 is backward compatible till Swift 3.
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()
UIActivityIndicator
by a spinner.Feel free to collaborate with ideas, issues and/or pull requests.
Patience is available under the MIT license. See the LICENSE file for more info.