Commit 9409cebd by Daniel Dahan

development: updated Divider defaults

parent fbd6fdef
...@@ -149,6 +149,7 @@ open class BottomNavigationController: UITabBarController, UITabBarControllerDel ...@@ -149,6 +149,7 @@ open class BottomNavigationController: UITabBarController, UITabBarControllerDel
/// Prepares the tabBar. /// Prepares the tabBar.
private func prepareTabBar() { private func prepareTabBar() {
tabBar.depthPreset = .depth1 tabBar.depthPreset = .depth1
tabBar.divider.alignment = .top
let image = UIImage.imageWithColor(color: Color.clear, size: CGSize(width: 1, height: 1)) let image = UIImage.imageWithColor(color: Color.clear, size: CGSize(width: 1, height: 1))
tabBar.shadowImage = image tabBar.shadowImage = image
tabBar.backgroundImage = image tabBar.backgroundImage = image
......
...@@ -124,6 +124,7 @@ open class BottomTabBar: UITabBar { ...@@ -124,6 +124,7 @@ open class BottomTabBar: UITabBar {
*/ */
public func prepareView() { public func prepareView() {
depthPreset = .depth1 depthPreset = .depth1
divider.alignment = .top
contentScaleFactor = Device.scale contentScaleFactor = Device.scale
backgroundColor = Color.white backgroundColor = Color.white
let image = UIImage.imageWithColor(color: Color.clear, size: CGSize(width: 1, height: 1)) let image = UIImage.imageWithColor(color: Color.clear, size: CGSize(width: 1, height: 1))
......
...@@ -70,7 +70,7 @@ open class Divider { ...@@ -70,7 +70,7 @@ open class Divider {
} }
/// A reference to the dividerAlignment. /// A reference to the dividerAlignment.
open var alignment = DividerAlignment.top { open var alignment = DividerAlignment.bottom {
didSet { didSet {
reload() reload()
} }
......
...@@ -340,6 +340,5 @@ open class NavigationBar: UINavigationBar { ...@@ -340,6 +340,5 @@ open class NavigationBar: UINavigationBar {
/// Prepares the divider. /// Prepares the divider.
private func prepareDivider() { private func prepareDivider() {
divider = Divider(view: self) divider = Divider(view: self)
divider.alignment = .bottom
} }
} }
...@@ -138,7 +138,6 @@ public class Toolbar: BarView { ...@@ -138,7 +138,6 @@ public class Toolbar: BarView {
super.prepareView() super.prepareView()
prepareTitleLabel() prepareTitleLabel()
prepareDetailLabel() prepareDetailLabel()
prepareDivider()
} }
/// Prepares the titleLabel. /// Prepares the titleLabel.
...@@ -156,9 +155,4 @@ public class Toolbar: BarView { ...@@ -156,9 +155,4 @@ public class Toolbar: BarView {
detailLabel.font = RobotoFont.regularWithSize(size: 12) detailLabel.font = RobotoFont.regularWithSize(size: 12)
detailLabel.textAlignment = .left detailLabel.textAlignment = .left
} }
/// Prepares the divider.
private func prepareDivider() {
divider.alignment = .bottom
}
} }
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