updated for isReadOnly
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
28d8161d09
commit
31b893042c
@ -100,13 +100,14 @@ open class DatePicker: EntryFieldBase, DatePickerPopoverViewControllerDelegate,
|
|||||||
// setting color config
|
// setting color config
|
||||||
selectedDateLabel.textColorConfiguration = primaryColorConfiguration.eraseToAnyColorable()
|
selectedDateLabel.textColorConfiguration = primaryColorConfiguration.eraseToAnyColorable()
|
||||||
|
|
||||||
// setup the calendar
|
|
||||||
|
|
||||||
// tap gesture
|
// tap gesture
|
||||||
fieldStackView
|
fieldStackView
|
||||||
.publisher(for: UITapGestureRecognizer())
|
.publisher(for: UITapGestureRecognizer())
|
||||||
.sink { [weak self] _ in
|
.sink { [weak self] _ in
|
||||||
self?.togglePicker()
|
guard let self else { return }
|
||||||
|
if self.isEnabled && !self.isReadOnly {
|
||||||
|
self.togglePicker()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.store(in: &subscribers)
|
.store(in: &subscribers)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user