refactored to now use the onClick
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
7e36bc074a
commit
e0d769ccf3
@ -154,15 +154,12 @@ open class DatePicker: EntryFieldBase {
|
|||||||
selectedDateLabel.textColorConfiguration = primaryColorConfiguration.eraseToAnyColorable()
|
selectedDateLabel.textColorConfiguration = primaryColorConfiguration.eraseToAnyColorable()
|
||||||
|
|
||||||
// tap gesture
|
// tap gesture
|
||||||
containerView
|
containerView.onClick = { [weak self] _ in
|
||||||
.publisher(for: UITapGestureRecognizer())
|
|
||||||
.sink { [weak self] _ in
|
|
||||||
guard let self else { return }
|
guard let self else { return }
|
||||||
if isEnabled && !isReadOnly {
|
if isEnabled && !isReadOnly {
|
||||||
showPopover()
|
showPopover()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.store(in: &subscribers)
|
|
||||||
|
|
||||||
NotificationCenter.default
|
NotificationCenter.default
|
||||||
.publisher(for: UIDevice.orientationDidChangeNotification).sink { [weak self] _ in
|
.publisher(for: UIDevice.orientationDidChangeNotification).sink { [weak self] _ in
|
||||||
|
|||||||
@ -153,12 +153,9 @@ open class DropdownSelect: EntryFieldBase {
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
// tap gesture
|
// tap gesture
|
||||||
containerView
|
containerView.onClick = { [weak self] _ in
|
||||||
.publisher(for: UITapGestureRecognizer())
|
|
||||||
.sink { [weak self] _ in
|
|
||||||
self?.launchPicker()
|
self?.launchPicker()
|
||||||
}
|
}
|
||||||
.store(in: &subscribers)
|
|
||||||
containerView.height(44)
|
containerView.height(44)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user