Skip to content

Commit

Permalink
Fixed access control for SwipeableItem.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar Apeland committed Oct 23, 2017
1 parent 118c2b3 commit 4d2d3e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions SwipeableViewController/Source/SwipeableItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ import UIKit
public struct SwipeableItem {
var title: String
var viewController: UIViewController

public init(title: String, viewController: UIViewController) {
self.title = title
self.viewController = viewController
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ open class SwipeableViewController: UIViewController {
// Setup - Navigation bar
navigationItem.title = initialItem.title
if #available(iOS 11.0, *) {
navigationBar.largeTitleTextAttributes = [NSAttributedStringKey.foregroundColor: UIColor.clear]
navigationBar.largeTitleTextAttributes = [.foregroundColor: UIColor.clear]
}

// Setup - View
Expand Down

0 comments on commit 4d2d3e0

Please sign in to comment.