Digital ACT-191 ONEAPP-7013 story: changes to pagination inset
This commit is contained in:
parent
993afcc367
commit
c00ddc68fd
@ -157,12 +157,11 @@ open class Carousel: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// If provided, will apply margin to pagination arrows. Can be set to either positive or negative values.
|
/// If provided, will apply margin to pagination arrows. Can be set to either positive or negative values.
|
||||||
/// The default value will be 12px in tablet and 8px in mobile.
|
/// The default value will be 12px in tablet and 8px in mobile. These values are the default in order to avoid overlapping content within the carousel.
|
||||||
open var paginationInset: CGFloat {
|
open var paginationInset: CGFloat {
|
||||||
get { return _paginationInset }
|
get { return _paginationInset }
|
||||||
set {
|
set {
|
||||||
let minValue = UIDevice.isIPad ? VDSLayout.space3X : VDSLayout.space2X
|
_paginationInset = newValue
|
||||||
_paginationInset = (newValue < minValue) ? minValue : newValue
|
|
||||||
updatePaginationInset()
|
updatePaginationInset()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user