https://github.com/pdil/pdloadingview
🌀 A circular loading indicator for iOS apps.
https://github.com/pdil/pdloadingview
ios loading-animations swift uikit
Last synced: 5 months ago
JSON representation
🌀 A circular loading indicator for iOS apps.
- Host: GitHub
- URL: https://github.com/pdil/pdloadingview
- Owner: pdil
- License: mit
- Created: 2017-04-28T18:27:46.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-25T18:33:22.000Z (about 9 years ago)
- Last Synced: 2024-12-30T20:15:12.358Z (over 1 year ago)
- Topics: ios, loading-animations, swift, uikit
- Language: Swift
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#### _This library is still a work in progress, as such not all features may work at this time._
_Feel free to submit pull requests, however._
# PDLoadingView
## Installation
Download [`PDLoadingView.swift`](https://github.com/pdil/PDLoadingView/blob/master/PDLoadingView.swift) and add it to your iOS project.
## Usage
* Create the view
``` swift
let loadingView = PDLoadingView(foreColor: .blue)
```
* Start with a message
``` swift
loadingView.start(with: "Loading...")
```
* Start with no message
``` swift
loadingView.start()
```

* Pause & resume loading
``` swift
if loadingView.isPaused {
loadingView.resume()
} else {
loadingView.pause()
}
```
* Finish loading
``` swift
loadingView.end()
```