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

This commit is contained in:
vasavk 2024-06-14 18:05:06 +05:30
parent 8de1ac8d99
commit 09aba055a5

View File

@ -121,7 +121,7 @@ class CarouselViewController: BaseViewController<Carousel> {
if let number {
self?.component.paginationInset = number.cgFloatValue
} else {
self?.component.paginationInset = UIDevice.isIPad ? VDSLayout.space12X : VDSLayout.space8X
self?.component.paginationInset = UIDevice.isIPad ? VDSLayout.space3X : VDSLayout.space2X
}
}.store(in: &subscribers)
@ -141,8 +141,7 @@ class CarouselViewController: BaseViewController<Carousel> {
layoutPickerSelectorView.text = component.layout.rawValue
paginationKindPickerSelectorView.text = ButtonIcon.Kind.lowContrast.rawValue
paginationFloatingSwitch.isOn = true
paginationInsetField.text = UIDevice.isIPad ? "12px" : "8px"
paginationInsetField.isUserInteractionEnabled = false
paginationInsetField.text = UIDevice.isIPad ? "12" : "8"
component.data = [{},{},{},{},{},{},{},{}]
}