refactored to change typograpicalStyle to textStyle

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-01-13 13:36:40 -06:00
parent 04561fb779
commit b7c250809b
6 changed files with 8 additions and 8 deletions

View File

@ -37,7 +37,7 @@ public class PickerSelectorView<EnumType: RawRepresentable>: UIStackView, Picker
fileprivate var selectedIndex = 0
private var subscribers = Set<AnyCancellable>()
private var label = Label().with {
$0.typograpicalStyle = .BodyLarge
$0.textStyle = .BodyLarge
}
public var selectedItem: EnumType {

View File

@ -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)

View File

@ -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] }

View File

@ -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
}
}

View File

@ -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?) {

View File

@ -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)