diff --git a/VDSSample/ViewControllers/BadgeIndicatorViewController.swift b/VDSSample/ViewControllers/BadgeIndicatorViewController.swift index 7ea7979..75c3e60 100644 --- a/VDSSample/ViewControllers/BadgeIndicatorViewController.swift +++ b/VDSSample/ViewControllers/BadgeIndicatorViewController.swift @@ -52,6 +52,7 @@ class BadgeIndicatorViewController: BaseViewController { var textField = NumericField() var leadingCharacterTextField = TextField() + var trailingTextField = TextField() var hideDotSwitch = Toggle() var hideBorderSwitch = Toggle() @@ -88,6 +89,7 @@ class BadgeIndicatorViewController: BaseViewController { dotForm.addFormRow(label: "Hide Dot", view: hideDotSwitch) dotForm.addFormRow(label: "Dot Size", view: dotSizeTextField) numberedForm.addFormRow(label: "Leading Character", view: leadingCharacterTextField) + numberedForm.addFormRow(label: "Trailing Text", view: trailingTextField) numberedForm.addFormRow(label: "Number", view: textField) numberedForm.addFormRow(label: "Max Digits", view: maxDigitsPickerSelectorView) append(section: numberedForm) @@ -114,6 +116,12 @@ class BadgeIndicatorViewController: BaseViewController { self?.component.leadingCharacter = text }.store(in: &subscribers) + trailingTextField + .textPublisher + .sink { [weak self] text in + self?.component.trailingText = text + }.store(in: &subscribers) + heightTextField .numberPublisher .sink { [weak self] number in