Commit 05e188df by Daniel Dahan

updated naming of pageMenuAlignment to tabBarAlignment

parent d75ed300
...@@ -40,8 +40,8 @@ open class PageMenuBarItem: FlatButton { ...@@ -40,8 +40,8 @@ open class PageMenuBarItem: FlatButton {
} }
} }
@objc(PageMenuAlignment) @objc(TabBarAlignment)
public enum PageMenuAlignment: Int { public enum TabBarAlignment: Int {
case top case top
case bottom case bottom
case hidden case hidden
...@@ -114,7 +114,7 @@ open class PageMenuController: UIViewController { ...@@ -114,7 +114,7 @@ open class PageMenuController: UIViewController {
} }
} }
open var pageMenuAlignment = PageMenuAlignment.bottom { open var tabBarAlignment = TabBarAlignment.bottom {
didSet { didSet {
layoutSubviews() layoutSubviews()
} }
...@@ -170,7 +170,7 @@ open class PageMenuController: UIViewController { ...@@ -170,7 +170,7 @@ open class PageMenuController: UIViewController {
tabBar?.height = p tabBar?.height = p
tabBar?.width = view.width + (tabBar?.layoutEdgeInsets.left ?? 0) + (tabBar?.layoutEdgeInsets.right ?? 0) tabBar?.width = view.width + (tabBar?.layoutEdgeInsets.left ?? 0) + (tabBar?.layoutEdgeInsets.right ?? 0)
switch pageMenuAlignment { switch tabBarAlignment {
case .top: case .top:
tabBar?.isHidden = false tabBar?.isHidden = false
tabBar?.y = 0 tabBar?.y = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment