added back hideSymbol
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
adb30de38c
commit
efc5f6b58d
@ -52,6 +52,7 @@ class FootnoteItemViewController: BaseViewController<FootnoteItem> {
|
|||||||
items: FootnoteItem.Size.allCases)
|
items: FootnoteItem.Size.allCases)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
var hideSymbolSwitch = Toggle()
|
||||||
var footnoteTextField = TextField()
|
var footnoteTextField = TextField()
|
||||||
var widthTextField = NumericField()
|
var widthTextField = NumericField()
|
||||||
var percentageTextField = NumericField()
|
var percentageTextField = NumericField()
|
||||||
@ -71,11 +72,16 @@ class FootnoteItemViewController: BaseViewController<FootnoteItem> {
|
|||||||
addFormRow(label: "Kind", view: kindPickerSelectorView)
|
addFormRow(label: "Kind", view: kindPickerSelectorView)
|
||||||
addFormRow(label: "Size", view: sizePickerSelectorView)
|
addFormRow(label: "Size", view: sizePickerSelectorView)
|
||||||
addFormRow(label: "Symbol Type", view: symbolTypePickerSelectorView)
|
addFormRow(label: "Symbol Type", view: symbolTypePickerSelectorView)
|
||||||
|
addFormRow(label: "Hide Symbol", view: hideSymbolSwitch)
|
||||||
addFormRow(label: "Text", view: footnoteTextField)
|
addFormRow(label: "Text", view: footnoteTextField)
|
||||||
addFormRow(label: "Width", view: widthTextField)
|
addFormRow(label: "Width", view: widthTextField)
|
||||||
addFormRow(label: "Percentage (1-100)", view: percentageTextField)
|
addFormRow(label: "Percentage (1-100)", view: percentageTextField)
|
||||||
addFormRow(label: "ToolTip Title", view: tooltipTitleTextField)
|
addFormRow(label: "ToolTip Title", view: tooltipTitleTextField)
|
||||||
addFormRow(label: "ToolTip Content", view: tooltipContentTextField)
|
addFormRow(label: "ToolTip Content", view: tooltipContentTextField)
|
||||||
|
|
||||||
|
hideSymbolSwitch.publisher(for: .valueChanged).sink { [weak self] control in
|
||||||
|
self?.component.hideSymbol = control.isOn
|
||||||
|
}.store(in: &subscribers)
|
||||||
|
|
||||||
footnoteTextField
|
footnoteTextField
|
||||||
.textPublisher
|
.textPublisher
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user