[ios] Fix track stats collection trailing inset

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
Kiryl Kaveryn
2025-06-17 12:43:32 +04:00
committed by Konstantin Pastbin
parent a88798fbf2
commit f746ab2c2d
2 changed files with 4 additions and 2 deletions

View File

@@ -137,7 +137,7 @@ extension ElevationProfilePresenter {
let width = collectionView.width
let cellHeight = collectionView.height
let modelsCount = CGFloat(descriptionModels.count)
let cellWidth = (width - cellSpacing * (modelsCount - 1) - collectionView.contentInset.right) / modelsCount
let cellWidth = (width - cellSpacing * (modelsCount - 1) - collectionView.contentInset.right - collectionView.contentInset.left) / modelsCount
return CGSize(width: cellWidth, height: cellHeight)
}