updated cell size for 3 & 4 digits

This commit is contained in:
Krishna Kishore Bandaru 2024-03-13 12:59:05 +05:30
parent 9822d4e777
commit 4cc1d5287d

View File

@ -18,8 +18,7 @@ final class PaginationFlowLayout : UICollectionViewLayout {
///Pre-defined sizes of the pagination cell based on number of digits.
private var upperLimitSize: CGSize {
switch upperLimitDigits {
case 3: .init(width: 28, height: 16)
case 4: .init(width: 34, height: 16)
case 3, 4: .init(width: 34, height: 16)
default: .init(width: 20, height: 16)
}
}