refactored textWidth

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-08-29 15:29:38 -05:00
parent 0f6787c32a
commit 82a96d7b95
2 changed files with 4 additions and 4 deletions

View File

@ -117,7 +117,7 @@ class InputFieldViewController: BaseViewController<InputField> {
}
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<InputField> {
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"

View File

@ -52,7 +52,7 @@ class NotificationViewController: BaseViewController<VDS.Notification> {
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<VDS.Notification> {
}
notificationTypePickerSelectorView.onPickerDidSelect = { [weak self] item in
self?.component.type = item
self?.component.style = item
}
layoutTypePickerSelectorView.onPickerDidSelect = { [weak self] item in