updated some logic and added starting text
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
16d53e1802
commit
89df3f8201
@ -34,7 +34,7 @@ class TextAreaViewController: BaseViewController<TextArea> {
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
addContentTopView(view: component)
|
||||
|
||||
component.text = "Starting Text"
|
||||
setupPicker()
|
||||
setupModel()
|
||||
}
|
||||
@ -95,7 +95,10 @@ class TextAreaViewController: BaseViewController<TextArea> {
|
||||
widthTextField
|
||||
.numberPublisher
|
||||
.sink { [weak self] number in
|
||||
guard let number else { return }
|
||||
guard let number else {
|
||||
self?.component.width = nil
|
||||
return
|
||||
}
|
||||
self?.component.width = number.cgFloatValue
|
||||
}.store(in: &subscribers)
|
||||
|
||||
@ -114,7 +117,10 @@ class TextAreaViewController: BaseViewController<TextArea> {
|
||||
maxLengthTextField
|
||||
.numberPublisher
|
||||
.sink { [weak self] number in
|
||||
guard let number else { return }
|
||||
guard let number else {
|
||||
self?.component.maxLength = nil
|
||||
return
|
||||
}
|
||||
self?.component.maxLength = number.intValue
|
||||
}.store(in: &subscribers)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user