From b7c250809bca7e3782c50faa1406c276adf8dd38 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Fri, 13 Jan 2023 13:36:40 -0600 Subject: [PATCH] refactored to change typograpicalStyle to textStyle Signed-off-by: Matt Bruce --- VDSSample/Protocols/PickerBase.swift | 2 +- VDSSample/ViewControllers/BaseViewController.swift | 2 +- VDSSample/ViewControllers/ButtonGroupViewController.swift | 4 ++-- VDSSample/ViewControllers/LabelViewController.swift | 4 ++-- VDSSample/ViewControllers/MenuViewController.swift | 2 +- VDSSample/ViewControllers/TileContainerViewController.swift | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/VDSSample/Protocols/PickerBase.swift b/VDSSample/Protocols/PickerBase.swift index ad564e2..23d83aa 100644 --- a/VDSSample/Protocols/PickerBase.swift +++ b/VDSSample/Protocols/PickerBase.swift @@ -37,7 +37,7 @@ public class PickerSelectorView: UIStackView, Picker fileprivate var selectedIndex = 0 private var subscribers = Set() private var label = Label().with { - $0.typograpicalStyle = .BodyLarge + $0.textStyle = .BodyLarge } public var selectedItem: EnumType { diff --git a/VDSSample/ViewControllers/BaseViewController.swift b/VDSSample/ViewControllers/BaseViewController.swift index 1337731..321d394 100644 --- a/VDSSample/ViewControllers/BaseViewController.swift +++ b/VDSSample/ViewControllers/BaseViewController.swift @@ -170,7 +170,7 @@ public class BaseViewController: UIViewController, Initable { let label = Label().with { $0.text = label - $0.typograpicalStyle = .BodyLarge + $0.textStyle = .BodyLarge } formRow.addArrangedSubview(label) diff --git a/VDSSample/ViewControllers/ButtonGroupViewController.swift b/VDSSample/ViewControllers/ButtonGroupViewController.swift index c2cb635..0949b7f 100644 --- a/VDSSample/ViewControllers/ButtonGroupViewController.swift +++ b/VDSSample/ViewControllers/ButtonGroupViewController.swift @@ -66,8 +66,8 @@ class ButtonGroupViewController: BaseViewController { let largeButtonGroup = ButtonGroup() let smallButtonGroup = ButtonGroup() - let largeLabel = Label().with{ $0.text = "Large Button Group"; $0.typograpicalStyle = .BoldTitleSmall } - let smallLabel = Label().with{ $0.text = "Small Button Group"; $0.typograpicalStyle = .BoldTitleSmall } + let largeLabel = Label().with{ $0.text = "Large Button Group"; $0.textStyle = .BoldTitleSmall } + let smallLabel = Label().with{ $0.text = "Small Button Group"; $0.textStyle = .BoldTitleSmall } override func allTextFields() -> [TextField]? { [widthTextField, percentageTextField] } diff --git a/VDSSample/ViewControllers/LabelViewController.swift b/VDSSample/ViewControllers/LabelViewController.swift index ce40745..e372199 100644 --- a/VDSSample/ViewControllers/LabelViewController.swift +++ b/VDSSample/ViewControllers/LabelViewController.swift @@ -70,7 +70,7 @@ class LabelViewController: BaseViewController { func setupModel() { label.text = "Label Component" - label.typograpicalStyle = .FeatureSmall + label.textStyle = .FeatureSmall //setup UI surfacePickerSelectorView.text = label.surface.rawValue @@ -109,7 +109,7 @@ class LabelViewController: BaseViewController { func updateLabelStyle(){ if let style = fontCategory.style(for: textSize, isBold: isBold) { - label.typograpicalStyle = style + label.textStyle = style } } diff --git a/VDSSample/ViewControllers/MenuViewController.swift b/VDSSample/ViewControllers/MenuViewController.swift index ae0283c..8438b94 100644 --- a/VDSSample/ViewControllers/MenuViewController.swift +++ b/VDSSample/ViewControllers/MenuViewController.swift @@ -37,7 +37,7 @@ class MenuCell: UITableViewCell { $0.translatesAutoresizingMaskIntoConstraints = false } var label = Label().with { - $0.typograpicalStyle = .BodyLarge + $0.textStyle = .BodyLarge } override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { diff --git a/VDSSample/ViewControllers/TileContainerViewController.swift b/VDSSample/ViewControllers/TileContainerViewController.swift index 73af2fc..28bfeb9 100644 --- a/VDSSample/ViewControllers/TileContainerViewController.swift +++ b/VDSSample/ViewControllers/TileContainerViewController.swift @@ -60,7 +60,7 @@ class TileContainerViewController: BaseViewController { override func allTextFields() -> [TextField]? { [widthTextField, heightTextField] } func setupForm(){ formStackView.addArrangedSubview(Label().with{ - $0.typograpicalStyle = .BoldBodyLarge + $0.textStyle = .BoldBodyLarge $0.text = "This object does NOT reflect normal \"surface\" changes, all properties are maually set" }) addFormRow(label: "Surface", view: surfacePickerSelectorView)