diff --git a/SKPhotoBrowserExample/SKPhotoBrowserExample/ViewController.swift b/SKPhotoBrowserExample/SKPhotoBrowserExample/ViewController.swift index 40dc8d5..522fd5f 100644 --- a/SKPhotoBrowserExample/SKPhotoBrowserExample/ViewController.swift +++ b/SKPhotoBrowserExample/SKPhotoBrowserExample/ViewController.swift @@ -94,7 +94,8 @@ class ViewController: UIViewController, UICollectionViewDataSource, UICollection // MARK: - SKPhotoBrowserDelegate 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) { @@ -122,6 +123,10 @@ class ViewController: UIViewController, UICollectionViewDataSource, UICollection return collectionView.cellForItemAtIndexPath(NSIndexPath(forItem: index, inSection: 0)) } + + override func preferredStatusBarStyle() -> UIStatusBarStyle { + return .LightContent + } } diff --git a/Screenshots/example01.gif b/Screenshots/example01.gif index 165c179..eb0173f 100644 Binary files a/Screenshots/example01.gif and b/Screenshots/example01.gif differ