Digital ACT-191 ONEAPP-7013 story: Peek minimum reverts to standard on tablet, and Pagination controls should show if peek none.
This commit is contained in:
parent
b5c609cacc
commit
3fe43e8c55
@ -157,10 +157,22 @@ class CarouselViewController: BaseViewController<Carousel> {
|
||||
|
||||
paginationDisplayPickerSelectorView.onPickerDidSelect = { [weak self] item in
|
||||
self?.component.paginationDisplay = item
|
||||
if (self?.component.peek == Carousel.Peek.none) && item == .none {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.0) {
|
||||
self?.paginationDisplayPickerSelectorView.text = "persistent"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
peekPickerSelectorView.onPickerDidSelect = { [weak self] item in
|
||||
self?.component.peek = item
|
||||
if item == .none {
|
||||
self?.paginationDisplayPickerSelectorView.text = "persistent"
|
||||
} else if item == .minimum && UIDevice.isIPad {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.0) {
|
||||
self?.peekPickerSelectorView.text = "standard"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
gutterPickerSelectorView.onPickerDidSelect = { [weak self] item in
|
||||
|
||||
Loading…
Reference in New Issue
Block a user