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

Commit

Permalink
add -enableSelect
Browse files Browse the repository at this point in the history
  • Loading branch information
wzxha committed Apr 8, 2018
1 parent 86fe7a3 commit cb072ba
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 cb072ba

Please sign in to comment.