refactored titlelockup into sections
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
aedf4eb520
commit
b7185c5ffa
@ -146,31 +146,40 @@ class TitleLockupViewController: BaseViewController<TitleLockup> {
|
||||
addFormRow(label: "Surface", view: surfacePickerSelectorView)
|
||||
addFormRow(label: "Text Alignment", view: textAlignmentPickerSelectorView)
|
||||
|
||||
addFormRow(label: "Eyebrow/Subtitle Style", view: otherStandardStylePickerSelectorView)
|
||||
addFormRow(label: "Eyebrow is Bold", view: eyebrowIsBold)
|
||||
addFormRow(label: "Eyebrow Text", view: eyebrowTextField)
|
||||
addFormRow(label: "Eyebrow Color", view: eyebrowColorPickerSelectorView)
|
||||
append(section: .init().with({
|
||||
$0.title = "\nEyebrow"
|
||||
$0.addFormRow(label: "TextStyle (Subtitle)", view: otherStandardStylePickerSelectorView)
|
||||
$0.addFormRow(label: "is Bold", view: eyebrowIsBold)
|
||||
$0.addFormRow(label: "Text", view: eyebrowTextField)
|
||||
$0.addFormRow(label: "Color", view: eyebrowColorPickerSelectorView)
|
||||
}))
|
||||
|
||||
eyebrowTokenFormStackView.addFormRow(label: "Token", view: eyebrowTokenColorView)
|
||||
eyebrowColorFormStackView.addFormRow(label: "Custom", view: eyebrowCustomColorView)
|
||||
append(section: eyebrowTokenFormStackView)
|
||||
append(section: eyebrowColorFormStackView)
|
||||
|
||||
addFormRow(label: "Title is Bold", view: titleIsBold)
|
||||
addFormRow(label: "Title Style", view: titleStandardStylePickerSelectorView)
|
||||
addFormRow(label: "Title Text", view: titleTextField)
|
||||
addFormRow(label: "Title Color", view: titleColorPickerSelectorView)
|
||||
append(section: .init().with({
|
||||
$0.title = "\nTitle"
|
||||
$0.addFormRow(label: "TextStyle", view: titleStandardStylePickerSelectorView)
|
||||
$0.addFormRow(label: "is Bold", view: titleIsBold)
|
||||
$0.addFormRow(label: "Text", view: titleTextField)
|
||||
$0.addFormRow(label: "Color", view: titleColorPickerSelectorView)
|
||||
}))
|
||||
titleTokenFormStackView.addFormRow(label: "Token", view: titleTokenColorView)
|
||||
titleColorFormStackView.addFormRow(label: "Custom", view: titleCustomColorView)
|
||||
append(section: titleTokenFormStackView)
|
||||
append(section: titleColorFormStackView)
|
||||
|
||||
addFormRow(label: "Subtitle Text", view: subTitleTextField)
|
||||
addFormRow(label: "Subtitle Color", view: subtitleColorPickerSelectorView)
|
||||
append(section: .init().with({
|
||||
$0.title = "\nSubtitle"
|
||||
$0.addFormRow(label: "Subtitle Text", view: subTitleTextField)
|
||||
$0.addFormRow(label: "Subtitle Color", view: subtitleColorPickerSelectorView)
|
||||
}))
|
||||
subtitleTokenFormStackView.addFormRow(label: "Token", view: subtitleTokenColorView)
|
||||
subtitleColorFormStackView.addFormRow(label: "Custom", view: subtitleCustomColorView)
|
||||
append(section: subtitleTokenFormStackView)
|
||||
append(section: subtitleColorFormStackView)
|
||||
|
||||
|
||||
eyebrowIsBold.publisher(for: .valueChanged).sink { [weak self] toggle in
|
||||
self?.setOtherModels()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user