turned off property for now.

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-06-09 14:18:40 -05:00
parent 79a51f7239
commit f3acbfe007

View File

@ -19,7 +19,6 @@ class TabsViewController: BaseViewController<Tabs> {
var sampleSwitch = Toggle() var sampleSwitch = Toggle()
var horizontalOrientationFormStackView = FormSection() var horizontalOrientationFormStackView = FormSection()
var overflowRow: UIView?
lazy var orientationPickerSelectorView = { lazy var orientationPickerSelectorView = {
PickerSelectorView(title: "", PickerSelectorView(title: "",
@ -39,11 +38,12 @@ class TabsViewController: BaseViewController<Tabs> {
items: Tabs.Size.allCases) items: Tabs.Size.allCases)
}() }()
lazy var overflowPickerSelectorView = { // var overflowRow: UIView?
PickerSelectorView(title: "", // lazy var overflowPickerSelectorView = {
picker: self.picker, // PickerSelectorView(title: "",
items: Tabs.Overflow.allCases) // picker: self.picker,
}() // items: Tabs.Overflow.allCases)
// }()
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
@ -66,7 +66,7 @@ class TabsViewController: BaseViewController<Tabs> {
//only in horizontal mode //only in horizontal mode
horizontalOrientationFormStackView.addFormRow(label: "Fill Container", view: .makeWrapper(for: fillContainerSwitch)) horizontalOrientationFormStackView.addFormRow(label: "Fill Container", view: .makeWrapper(for: fillContainerSwitch))
horizontalOrientationFormStackView.addFormRow(label: "Indicator Position", view: indicatorPositionPickerSelectorView) horizontalOrientationFormStackView.addFormRow(label: "Indicator Position", view: indicatorPositionPickerSelectorView)
overflowRow = horizontalOrientationFormStackView.addFormRow(label: "Overflow", view: overflowPickerSelectorView) //overflowRow = horizontalOrientationFormStackView.addFormRow(label: "Overflow", view: overflowPickerSelectorView)
append(section: horizontalOrientationFormStackView) append(section: horizontalOrientationFormStackView)
@ -80,7 +80,7 @@ class TabsViewController: BaseViewController<Tabs> {
fillContainerSwitch.onChange = { [weak self] sender in fillContainerSwitch.onChange = { [weak self] sender in
self?.component.fillContainer = sender.isOn self?.component.fillContainer = sender.isOn
self?.overflowRow?.isHidden = sender.isOn //self?.overflowRow?.isHidden = sender.isOn
} }
sampleSwitch.onChange = { [weak self] sender in sampleSwitch.onChange = { [weak self] sender in
@ -111,7 +111,7 @@ class TabsViewController: BaseViewController<Tabs> {
sizePickerSelectorView.text = component.size.rawValue sizePickerSelectorView.text = component.size.rawValue
orientationPickerSelectorView.text = component.orientation.rawValue orientationPickerSelectorView.text = component.orientation.rawValue
indicatorPositionPickerSelectorView.text = component.indicatorPosition.rawValue indicatorPositionPickerSelectorView.text = component.indicatorPosition.rawValue
overflowPickerSelectorView.text = component.overflow.rawValue //overflowPickerSelectorView.text = component.overflow.rawValue
disabledSwitch.isOn = component.disabled disabledSwitch.isOn = component.disabled
borderlineSwitch.isOn = component.borderLine borderlineSwitch.isOn = component.borderLine
fillContainerSwitch.isOn = component.fillContainer fillContainerSwitch.isOn = component.fillContainer
@ -137,8 +137,8 @@ class TabsViewController: BaseViewController<Tabs> {
self?.component.indicatorPosition = item self?.component.indicatorPosition = item
} }
overflowPickerSelectorView.onPickerDidSelect = { [weak self] item in // overflowPickerSelectorView.onPickerDidSelect = { [weak self] item in
self?.component.overflow = item // self?.component.overflow = item
} // }
} }
} }