Digital ACT-191 ONEAPP-9314 story: price to float value, load test data
This commit is contained in:
parent
5d06bc6ac2
commit
604dfd73a1
@ -50,6 +50,7 @@ class PriceLockupViewController: BaseViewController<PriceLockup> {
|
||||
|
||||
override func setupForm() {
|
||||
super.setupForm()
|
||||
addFormRow(label: "Surface", view: surfacePickerSelectorView)
|
||||
addFormRow(label: "Bold", view: boldSwitch)
|
||||
addFormRow(label: "Kind", view: kindPickerSelectorView)
|
||||
addFormRow(label: "Size", view: sizePickerSelectorView)
|
||||
@ -82,7 +83,7 @@ class PriceLockupViewController: BaseViewController<PriceLockup> {
|
||||
.numberPublisher
|
||||
.sink { [weak self] number in
|
||||
guard let number else { return }
|
||||
self?.component.price = number.cgFloatValue
|
||||
self?.component.price = number.floatValue
|
||||
}.store(in: &subscribers)
|
||||
|
||||
leadingTextField
|
||||
@ -105,7 +106,7 @@ class PriceLockupViewController: BaseViewController<PriceLockup> {
|
||||
}
|
||||
|
||||
func setupModel() {
|
||||
component.price = 24.99
|
||||
component.price = 24.22
|
||||
component.superscript = "*"
|
||||
component.leadingText = "Save"
|
||||
component.trailingText = "with Auto Pay"
|
||||
@ -113,6 +114,9 @@ class PriceLockupViewController: BaseViewController<PriceLockup> {
|
||||
sizePickerSelectorView.text = component.size.rawValue
|
||||
kindPickerSelectorView.text = component.kind.rawValue
|
||||
termPickerSelectorView.text = component.term.rawValue
|
||||
leadingTextField.text = component.leadingText
|
||||
trailingTextField.text = component.trailingText
|
||||
superscriptTextField.text = component.superscript
|
||||
}
|
||||
|
||||
func setupPicker() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user