Digital ACT-191 ONEAPP-7013 story: changes to pagination inset

This commit is contained in:
Vasavi Kanamarlapudi 2024-06-24 16:31:00 +05:30
parent 993afcc367
commit c00ddc68fd

View File

@ -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.
/// 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 {
get { return _paginationInset }
set {
let minValue = UIDevice.isIPad ? VDSLayout.space3X : VDSLayout.space2X
_paginationInset = (newValue < minValue) ? minValue : newValue
_paginationInset = newValue
updatePaginationInset()
}
}