Skip to content

Commit 179d06e

Browse files
committed
Swift4
1 parent ff6fd50 commit 179d06e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Source/NovaMenuViewController.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public struct NovaMenuStyle {
1717
public var rootScale: CGFloat = 0.92
1818
public var rootFadeAlpha: CGFloat = 0.4
1919

20-
public var backgroundColor: UIColor = UIColor(red:0.27, green:0.32, blue:0.35, alpha:1.00)
2120
public var menuColor: UIColor = UIColor(red:0.27, green:0.32, blue:0.35, alpha:1.00)
2221
public var dimmerColor: UIColor = UIColor(red:0.27, green:0.32, blue:0.35, alpha:0.75)
2322
public var buttonColor: UIColor = .white
@@ -74,8 +73,8 @@ open class NovaMenuItem {
7473

7574

7675
// Changing this will require redoing the Expand Button Animation ... so don't.
77-
private let NovaMenuHeight: CGFloat = 52
78-
private let NovaMenuDefaultFontName = "AvenirNextCondensed-DemiBold"
76+
fileprivate let NovaMenuHeight: CGFloat = 52
77+
public let NovaMenuDefaultFontName = "AvenirNextCondensed-DemiBold"
7978

8079

8180
@objc open class NovaMenuViewController: UIViewController {
@@ -154,7 +153,7 @@ private let NovaMenuDefaultFontName = "AvenirNextCondensed-DemiBold"
154153
}
155154
}
156155

157-
open func closeMenu(_ animated: Bool) {
156+
@objc open func closeMenu(_ animated: Bool) {
158157
expanded = false
159158
if animated {
160159

@@ -254,7 +253,7 @@ private let NovaMenuDefaultFontName = "AvenirNextCondensed-DemiBold"
254253
menuView.tableView.reloadData()
255254
}
256255

257-
func expandButtonHandler(_ sender: UIButton) {
256+
@objc func expandButtonHandler(_ sender: UIButton) {
258257
expanded = !expanded
259258
}
260259

0 commit comments

Comments
 (0)