Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4 from Wzxhaha/master
Browse files Browse the repository at this point in the history
add -enableSelect
  • Loading branch information
HorexC authored Apr 8, 2018
2 parents 86fe7a3 + cb072ba commit a4cc80c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions PhotoBrowser/PhotoBrowser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ open class PhotoBrowser: UIPageViewController {

var isFullScreen = false
var headerView: PBNavigationBar?

open var photos: [Photo]? {
didSet {
if let photos = photos {
Expand Down Expand Up @@ -85,12 +84,17 @@ open class PhotoBrowser: UIPageViewController {
open var toolbar: PBToolbar?
open var backgroundColor = UIColor.black
open weak var photoBrowserDelegate: PhotoBrowserDelegate?
open var enableShare = true {
open var enableShare: Bool = true {
didSet {
headerView?.rightButton.isHidden = !enableShare
headerView?.updateShareStatus(enableShare)
}
}
open var enableSelect: Bool = true {
didSet {
headerView?.rightButton.isHidden = !enableSelect
}
}

open var currentIndex: Int = 0
open var currentPhoto: Photo? {
Expand Down

0 comments on commit a4cc80c

Please sign in to comment.