removed minimumLineHeight

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-07-24 10:56:30 -05:00
parent 1c793b44ad
commit 18dfdb179e

View File

@ -30,7 +30,6 @@ class LabelViewController: BaseViewController<Label> {
//------------------------------------
//testing only remove later
//------------------------------------
var useMinimumLineHeight = Toggle().with { $0.isOn = NSMutableAttributedString.useMinimumLineHeight }
var useScaledLineHeight = Toggle().with { $0.isOn = NSMutableAttributedString.useScaledLineHeight }
var pointSizeRange = Slider().with {
@ -186,22 +185,13 @@ class LabelViewController: BaseViewController<Label> {
testingSection.title = "Temporary Settings"
testingSection.addFormRow(label: "Original Style Props", view: baseStyleLabel)
currentStyleRow = testingSection.addFormRow(label: "Customized Style Props", view: currentStyleLabel)
testingSection.addFormRow(label: "Min LineHeight", view: useMinimumLineHeight)
testingSection.addFormRow(label: "Calculated", view: calculatedLabel)
testingSection.addFormRow(label: "Point Size", view: pointSizeRange)
testingSection.addFormRow(label: "Line Height", view: lineheightRange)
testingSection.addFormRow(label: "Top Inset", view: topInsetRange)
testingSection.addFormRow(label: "Bottom Inset", view: bottomInsetRange)
append(section: testingSection)
useMinimumLineHeight
.publisher(for: .valueChanged)
.sink { [weak self] toggle in
NSMutableAttributedString.useMinimumLineHeight = toggle.isOn
self?.component.setNeedsUpdate()
self?.updateStyleLabel()
}.store(in: &subscribers)
useScaledLineHeight
.publisher(for: .valueChanged)
.sink { [weak self] toggle in