Small fix in demo App, updated gif example with new features and fixes
This commit is contained in:
parent
e3a5267edf
commit
28f41e39e0
|
|
@ -94,7 +94,8 @@ class ViewController: UIViewController, UICollectionViewDataSource, UICollection
|
||||||
|
|
||||||
// MARK: - SKPhotoBrowserDelegate
|
// MARK: - SKPhotoBrowserDelegate
|
||||||
func didShowPhotoAtIndex(index: Int) {
|
func didShowPhotoAtIndex(index: Int) {
|
||||||
// do some handle if you need
|
collectionView.visibleCells().forEach({$0.hidden = false})
|
||||||
|
collectionView.cellForItemAtIndexPath(NSIndexPath(forItem: index, inSection: 0))?.hidden = true
|
||||||
}
|
}
|
||||||
|
|
||||||
func willDismissAtPageIndex(index: Int) {
|
func willDismissAtPageIndex(index: Int) {
|
||||||
|
|
@ -122,6 +123,10 @@ class ViewController: UIViewController, UICollectionViewDataSource, UICollection
|
||||||
|
|
||||||
return collectionView.cellForItemAtIndexPath(NSIndexPath(forItem: index, inSection: 0))
|
return collectionView.cellForItemAtIndexPath(NSIndexPath(forItem: index, inSection: 0))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override func preferredStatusBarStyle() -> UIStatusBarStyle {
|
||||||
|
return .LightContent
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.1 MiB After Width: | Height: | Size: 3.2 MiB |
Loading…
Reference in New Issue