Commit 0372b3bc by Daniel Dahan

development: added isDividerHidden for the Divider UIView extension

parent f4f1645c
......@@ -43,6 +43,7 @@ open class BottomTabBar: UITabBar {
}
/// Automatically aligns the BottomNavigationBar to the superview.
@IBInspectable
open var isAlignedToParentAutomatically = true
/// A property that accesses the backing layer's background
......
......@@ -104,6 +104,15 @@ public struct Divider {
self.thickness = thickness
}
/**
Hides the divier line.
*/
internal var isHidden = false {
didSet {
line?.isHidden = isHidden
}
}
/// Lays out the divider.
public func reload() {
guard let l = line, let v = view else {
......@@ -172,6 +181,17 @@ extension UIView {
}
}
/// Divider visibility.
@IBInspectable
open var isDividerHidden: Bool {
get {
return divider.isHidden
}
set(value) {
divider.isHidden = value
}
}
/// Divider animation.
open var dividerAlignment: DividerAlignment {
get {
......
......@@ -94,9 +94,9 @@ open class Switch: UIControl {
/// Indicates if the animation should bounce.
@IBInspectable
open var bounceable = true {
open var isBounceable = true {
didSet {
bounceOffset = bounceable ? 3 : 0
bounceOffset = isBounceable ? 3 : 0
}
}
......
......@@ -81,6 +81,7 @@ open class TabBar: Bar {
}
/// A boolean to animate the line when touched.
@IBInspectable
open var isLineAnimated = true {
didSet {
for b in buttons {
......
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