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 {
|
||||
$0.buttonPosition = .left
|
||||
$0.alignment = .left
|
||||
}
|
||||
|
||||
//Text
|
||||
@ -164,7 +164,7 @@ open class Notification: View {
|
||||
set {
|
||||
if !UIDevice.isIPad, newValue == .horizontal { return }
|
||||
_layout = newValue
|
||||
buttonsView.buttonPosition = _layout == .horizontal ? .center : .left
|
||||
buttonsView.alignment = _layout == .horizontal ? .center : .left
|
||||
setNeedsUpdate()
|
||||
}
|
||||
get { _layout }
|
||||
@ -244,7 +244,7 @@ open class Notification: View {
|
||||
subTitleLabel.textStyle = UIDevice.isIPad ? .bodyLarge : .bodySmall
|
||||
|
||||
buttonsView.reset()
|
||||
buttonsView.buttonPosition = .left
|
||||
buttonsView.alignment = .left
|
||||
|
||||
primaryButtonModel = nil
|
||||
secondaryButtonModel = nil
|
||||
|
||||
@ -13,7 +13,7 @@ open class TabsContainer: View {
|
||||
//--------------------------------------------------
|
||||
// MARK: - Enums
|
||||
//--------------------------------------------------
|
||||
public enum Width {
|
||||
public enum TabsWidth {
|
||||
case percentage(CGFloat)
|
||||
case value(CGFloat)
|
||||
}
|
||||
@ -60,10 +60,10 @@ open class TabsContainer: View {
|
||||
open var sticky: Bool = false { didSet { setNeedsUpdate() } }
|
||||
|
||||
///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%.
|
||||
open var width: Width {
|
||||
open var width: TabsWidth {
|
||||
get {
|
||||
return _width
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user