Digital ACT-191 ONEAPP-7013 story: Standard Peek supported for all Tablet viewports and layouts, for 1up layouts on Mobile viewports only.
This commit is contained in:
parent
16fff82ac3
commit
14199f53d1
@ -172,6 +172,10 @@ class CarouselViewController: BaseViewController<Carousel> {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.0) {
|
||||
self?.peekPickerSelectorView.text = "standard"
|
||||
}
|
||||
} else if item == .standard && !UIDevice.isIPad && (self?.component.layout != CarouselScrollbar.Layout.oneUP) {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.0) {
|
||||
self?.peekPickerSelectorView.text = "minimum"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -180,6 +184,11 @@ class CarouselViewController: BaseViewController<Carousel> {
|
||||
}
|
||||
|
||||
layoutPickerSelectorView.onPickerDidSelect = { [weak self] item in
|
||||
if item != .oneUP && !UIDevice.isIPad && self?.component.peek == Carousel.Peek.standard {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.0) {
|
||||
self?.peekPickerSelectorView.text = "minimum"
|
||||
}
|
||||
}
|
||||
self?.component.layout = item
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user