Skip to content

Commit

Permalink
Fix: #40 Is there a way to hide the share button in the navigation bar?
Browse files Browse the repository at this point in the history
  • Loading branch information
m1entus committed Feb 8, 2018
1 parent f5dd5b3 commit 214c6e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions INSPhotoGallery/INSPhotosOverlayView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,25 +45,25 @@ open class INSPhotosOverlayView: UIView , INSPhotosOverlayViewable {
private var topShadow: CAGradientLayer!
private var bottomShadow: CAGradientLayer!

var leftBarButtonItem: UIBarButtonItem? {
open var leftBarButtonItem: UIBarButtonItem? {
didSet {
navigationItem.leftBarButtonItem = leftBarButtonItem
}
}
var rightBarButtonItem: UIBarButtonItem? {
open var rightBarButtonItem: UIBarButtonItem? {
didSet {
navigationItem.rightBarButtonItem = rightBarButtonItem
}
}

#if swift(>=4.0)
var titleTextAttributes: [NSAttributedStringKey : AnyObject] = [:] {
open var titleTextAttributes: [NSAttributedStringKey : AnyObject] = [:] {
didSet {
navigationBar.titleTextAttributes = titleTextAttributes
}
}
#else
var titleTextAttributes: [String : AnyObject] = [:] {
open var titleTextAttributes: [String : AnyObject] = [:] {
didSet {
navigationBar.titleTextAttributes = titleTextAttributes
}
Expand Down

0 comments on commit 214c6e4

Please sign in to comment.