Digital ACT-191 ONEAPP-7013 story: changes to the default view of the carousel with one peek visible
This commit is contained in:
parent
c00ddc68fd
commit
0b47d70352
@ -441,7 +441,13 @@ open class Carousel: View {
|
||||
minimumSlotWidth = actualWidth - (CGFloat(layout.value) * gutter.value)
|
||||
switch peek {
|
||||
case .standard:
|
||||
minimumSlotWidth = minimumSlotWidth - (3*peekMinimum)
|
||||
// Supported for all Tablet viewports and layouts.
|
||||
// Supported only for 1up layouts on Mobile viewports.
|
||||
if UIDevice.isIPad {
|
||||
minimumSlotWidth = minimumSlotWidth - (minimumSlotWidth/(CGFloat(layout.value) + 2))
|
||||
} else if layout == .oneUP {
|
||||
minimumSlotWidth = minimumSlotWidth - (minimumSlotWidth/4)
|
||||
}
|
||||
case .minimum:
|
||||
minimumSlotWidth = minimumSlotWidth - peekMinimum
|
||||
case .none:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user