Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 ⌚️

Awesome Lists containing this project

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)