Skip to content

Commit 3754c71

Browse files
committed
Readme modified
1 parent 2a6bbba commit 3754c71

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,31 @@ it, simply add the following line to your Podfile:
2020
pod "LoadingViewController"
2121
```
2222

23+
Currently it supporting UIViewControllers but not UITableViewController and UICollectionViewController.
24+
25+
## How to use
26+
27+
Subclass your controller from LoadingViewController. On the top of View of your controller put another UIView which will be content view. All your content should be on the top of Content view. Link *contentView* property with this newly created view.
28+
29+
```javascript
30+
override func viewDidLoad() {
31+
super.viewDidLoad()
32+
33+
// Do any additional setup after loading the view, typically from a nib.
34+
35+
delay(3.0) { [weak self] in
36+
self?.setVisibleScreen(.Loading)
37+
self?.delay(3, closure: { [weak self] in
38+
self?.setVisibleScreen(.Content)
39+
})
40+
}
41+
}
42+
```
43+
44+
## TODO
45+
* add support of UITableViewController and UICollectionViewController
46+
* implement NoData view, Error view, Empty view
47+
2348
## Author
2449
2550
Sapozhnik Ivan, sapozhnik.ivan@gmail.com

0 commit comments

Comments
 (0)