refactoed name
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
d84ccbb5c2
commit
94fcd7bf60
@ -114,7 +114,7 @@ open class Notification: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
open var buttonsView = ButtonGroup().with {
|
open var buttonsView = ButtonGroup().with {
|
||||||
$0.buttonPosition = .left
|
$0.alignment = .left
|
||||||
}
|
}
|
||||||
|
|
||||||
//Text
|
//Text
|
||||||
@ -164,7 +164,7 @@ open class Notification: View {
|
|||||||
set {
|
set {
|
||||||
if !UIDevice.isIPad, newValue == .horizontal { return }
|
if !UIDevice.isIPad, newValue == .horizontal { return }
|
||||||
_layout = newValue
|
_layout = newValue
|
||||||
buttonsView.buttonPosition = _layout == .horizontal ? .center : .left
|
buttonsView.alignment = _layout == .horizontal ? .center : .left
|
||||||
setNeedsUpdate()
|
setNeedsUpdate()
|
||||||
}
|
}
|
||||||
get { _layout }
|
get { _layout }
|
||||||
@ -244,7 +244,7 @@ open class Notification: View {
|
|||||||
subTitleLabel.textStyle = UIDevice.isIPad ? .bodyLarge : .bodySmall
|
subTitleLabel.textStyle = UIDevice.isIPad ? .bodyLarge : .bodySmall
|
||||||
|
|
||||||
buttonsView.reset()
|
buttonsView.reset()
|
||||||
buttonsView.buttonPosition = .left
|
buttonsView.alignment = .left
|
||||||
|
|
||||||
primaryButtonModel = nil
|
primaryButtonModel = nil
|
||||||
secondaryButtonModel = nil
|
secondaryButtonModel = nil
|
||||||
|
|||||||
@ -13,7 +13,7 @@ open class TabsContainer: View {
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Enums
|
// MARK: - Enums
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
public enum Width {
|
public enum TabsWidth {
|
||||||
case percentage(CGFloat)
|
case percentage(CGFloat)
|
||||||
case value(CGFloat)
|
case value(CGFloat)
|
||||||
}
|
}
|
||||||
@ -60,10 +60,10 @@ open class TabsContainer: View {
|
|||||||
open var sticky: Bool = false { didSet { setNeedsUpdate() } }
|
open var sticky: Bool = false { didSet { setNeedsUpdate() } }
|
||||||
|
|
||||||
///rules for width
|
///rules for width
|
||||||
private var _width: Width = .percentage(0.25)
|
private var _width: TabsWidth = .percentage(0.25)
|
||||||
|
|
||||||
///Width of all Tabs when orientation is vertical, defaults to 25%.
|
///Width of all Tabs when orientation is vertical, defaults to 25%.
|
||||||
open var width: Width {
|
open var width: TabsWidth {
|
||||||
get {
|
get {
|
||||||
return _width
|
return _width
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user