Commit 9409cebd by Daniel Dahan

development: updated Divider defaults

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