Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ezefranca/the-missing-apple-watch-loader
The missing apple watch loader ⌚️
https://github.com/ezefranca/the-missing-apple-watch-loader
apple-watch apple-watch-loader apple-watch-support loader
Last synced: 12 days ago
JSON representation
The missing apple watch loader ⌚️
- Host: GitHub
- URL: https://github.com/ezefranca/the-missing-apple-watch-loader
- Owner: ezefranca
- License: mit
- Created: 2017-11-26T01:06:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-01T13:02:56.000Z (about 7 years ago)
- Last Synced: 2024-11-21T02:33:28.404Z (about 1 month ago)
- Topics: apple-watch, apple-watch-loader, apple-watch-support, loader
- Language: Swift
- Homepage:
- Size: 500 KB
- Stars: 23
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-apple-watch - The Missing Apple Watch Loader
README
# The missing apple watch loader
![](https://media.giphy.com/media/l4Ep3igr1qTS1dkxa/giphy.gif)
# 🐧 How to use?
Put a centralized ```WKInterfaceImage``` in your storyboard, create the ```@IBOutlet``` copy the images to the correct bundle and implement the ***start*** and ***stop*** loader.
### Example
```swift
@IBOutlet var loader: WKInterfaceImage!
func showLoader() {
loader.setImageNamed("loader")
loader.startAnimatingWithImages(in: NSRange(location: 1,
length: 8), duration: 0.8, repeatCount: -1)
}
func stopLoader() {
self.loader.stopAnimating()
}
```The image name ```loader``` :
![](folder.png)