updated
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
4f20e6f245
commit
3b75e3dc5a
@ -104,20 +104,13 @@ class NotificationViewController: BaseViewController {
|
|||||||
}
|
}
|
||||||
}.store(in: &subscribers)
|
}.store(in: &subscribers)
|
||||||
|
|
||||||
hideCloseButtonToggle.publisher(for: .valueChanged).sink(receiveValue: { [weak self] toggle in
|
hideCloseButtonToggle.onChange = { [weak self] toggle in
|
||||||
self?.notificationView.hideCloseButton = toggle.isOn
|
self?.notificationView.hideCloseButton = toggle.isOn
|
||||||
}).store(in: &subscribers)
|
}
|
||||||
|
|
||||||
fullBleedToggle.publisher(for: .valueChanged).sink(receiveValue: { [weak self] toggle in
|
fullBleedToggle.onChange = { [weak self] toggle in
|
||||||
self?.notificationView.fullBleed = toggle.isOn
|
self?.notificationView.fullBleed = toggle.isOn
|
||||||
|
}
|
||||||
let isFullBleed = self?.notificationView.fullBleed ?? false
|
|
||||||
|
|
||||||
self?.notificationView.leadingConstraint?.constant = isFullBleed ? 0 : 16
|
|
||||||
self?.notificationView.trailingConstraint?.constant = isFullBleed ? 0 : 16
|
|
||||||
self?.notificationView.leadingConstraint?.isActive = isFullBleed
|
|
||||||
self?.notificationView.trailingConstraint?.isActive = isFullBleed
|
|
||||||
}).store(in: &subscribers)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func setupPicker() {
|
func setupPicker() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user