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 //testing only remove later
//------------------------------------ //------------------------------------
var useMinimumLineHeight = Toggle().with { $0.isOn = NSMutableAttributedString.useMinimumLineHeight }
var useScaledLineHeight = Toggle().with { $0.isOn = NSMutableAttributedString.useScaledLineHeight } var useScaledLineHeight = Toggle().with { $0.isOn = NSMutableAttributedString.useScaledLineHeight }
var pointSizeRange = Slider().with { var pointSizeRange = Slider().with {
@ -186,7 +185,6 @@ class LabelViewController: BaseViewController<Label> {
testingSection.title = "Temporary Settings" testingSection.title = "Temporary Settings"
testingSection.addFormRow(label: "Original Style Props", view: baseStyleLabel) testingSection.addFormRow(label: "Original Style Props", view: baseStyleLabel)
currentStyleRow = testingSection.addFormRow(label: "Customized Style Props", view: currentStyleLabel) 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: "Calculated", view: calculatedLabel)
testingSection.addFormRow(label: "Point Size", view: pointSizeRange) testingSection.addFormRow(label: "Point Size", view: pointSizeRange)
testingSection.addFormRow(label: "Line Height", view: lineheightRange) testingSection.addFormRow(label: "Line Height", view: lineheightRange)
@ -194,14 +192,6 @@ class LabelViewController: BaseViewController<Label> {
testingSection.addFormRow(label: "Bottom Inset", view: bottomInsetRange) testingSection.addFormRow(label: "Bottom Inset", view: bottomInsetRange)
append(section: testingSection) 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 useScaledLineHeight
.publisher(for: .valueChanged) .publisher(for: .valueChanged)
.sink { [weak self] toggle in .sink { [weak self] toggle in