From 82a96d7b958d4dfcc2b799612a3e508c28d7a7b0 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 29 Aug 2023 15:29:38 -0500 Subject: [PATCH] refactored textWidth Signed-off-by: Matt Bruce --- VDSSample/ViewControllers/InputFieldViewController.swift | 4 ++-- VDSSample/ViewControllers/NotificationViewController.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VDSSample/ViewControllers/InputFieldViewController.swift b/VDSSample/ViewControllers/InputFieldViewController.swift index e1e81b7..c935829 100644 --- a/VDSSample/ViewControllers/InputFieldViewController.swift +++ b/VDSSample/ViewControllers/InputFieldViewController.swift @@ -117,7 +117,7 @@ class InputFieldViewController: BaseViewController { } func setupModel() { - component.type = .text + component.fieldType = .text component.width = 328 component.labelText = "Street Address" component.helperText = "For example: 123 Verizon St" @@ -171,7 +171,7 @@ class InputFieldViewController: BaseViewController { extension InputFieldViewController: ComponentSampleable { static func makeSample() -> ComponentSample { let component = Self.makeComponent() - component.type = .text + component.fieldType = .text component.width = 328 component.labelText = "Street Address" component.helperText = "For example: 123 Verizon St" diff --git a/VDSSample/ViewControllers/NotificationViewController.swift b/VDSSample/ViewControllers/NotificationViewController.swift index c8e3568..6bf5a09 100644 --- a/VDSSample/ViewControllers/NotificationViewController.swift +++ b/VDSSample/ViewControllers/NotificationViewController.swift @@ -52,7 +52,7 @@ class NotificationViewController: BaseViewController { override func setupForm() { super.setupForm() addFormRow(label: "Surface", view: surfacePickerSelectorView) - addFormRow(label: "Type", view: notificationTypePickerSelectorView) + addFormRow(label: "Style", view: notificationTypePickerSelectorView) addFormRow(label: "Layout", view: layoutTypePickerSelectorView) addFormRow(label: "Title", view: titleTextField) addFormRow(label: "SubTitle", view: subTitleTextField) @@ -114,7 +114,7 @@ class NotificationViewController: BaseViewController { } notificationTypePickerSelectorView.onPickerDidSelect = { [weak self] item in - self?.component.type = item + self?.component.style = item } layoutTypePickerSelectorView.onPickerDidSelect = { [weak self] item in