Description
Skeleton in tableView with different cells (HEIGHTS)
What type of issue is this? (place an x in one of the [ ])
Requirements (place an x in each of the [ ])
Bug Report
SkeletonView Environment:
SkeletonView version:1.30.4
Xcode version:16.2
Swift version:6.0.3
Steps to reproduce:
- Create a tableView with different cells, inside the the cellForRowAt using:
let emptyCell = UITableViewCell()
let section = homeSections[indexPath.section].cellType
- Using the extension for collectionSkeletonView cellIdentifierForRowAt:
if indexPath.row == 0 {
return IntroHomeTableViewCell.identifier
}else{
return ProductsTableViewCell.identifier
}
- Using extension for SkeletonTableViewDelegate and using the function collectionSkeletonView(heightForRowAt)
if indexPath.row == 0 {
return 220
}else{
return 270
}
Expected result:
My goal right now is to have the tableView with the two diferent cells, the first cell (IntroHomeTableViewCell) as 220 height, and the second cell (ProductsTableViewCell) as 270 height
Actual result:
I'm getting two different cells indeed which is part of the objective, but the second cell (ProductsTableViewCell) is setted as 220 height, which means it is a copy of height from the first cell
Attachments:
I will set here how the ProductsTableviewcell should look with all the corners perfectly rounded in other view.
*Other view with the 270 height ->

Here is what happens when i use this function:
extension HomeViewController: SkeletonTableViewDelegate {
func collectionSkeletonView(_ skeletonView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if indexPath.row == 0 {
return 220
}else{
return 270
}
}
} ->>

*Here is what happens when i dont use the function of height, as you can see the first cell is correct, but the second one is like cutted (because the height should be 270).

Description
Skeleton in tableView with different cells (HEIGHTS)
What type of issue is this? (place an
xin one of the[ ])Requirements (place an
xin each of the[ ])Bug Report
SkeletonView Environment:
SkeletonView version:1.30.4
Xcode version:16.2
Swift version:6.0.3
Steps to reproduce:
let emptyCell = UITableViewCell()
let section = homeSections[indexPath.section].cellType
if indexPath.row == 0 {
return IntroHomeTableViewCell.identifier
}else{
return ProductsTableViewCell.identifier
}
if indexPath.row == 0 {
return 220
}else{
return 270
}
Expected result:
My goal right now is to have the tableView with the two diferent cells, the first cell (IntroHomeTableViewCell) as 220 height, and the second cell (ProductsTableViewCell) as 270 height
Actual result:
I'm getting two different cells indeed which is part of the objective, but the second cell (ProductsTableViewCell) is setted as 220 height, which means it is a copy of height from the first cell
Attachments:
I will set here how the ProductsTableviewcell should look with all the corners perfectly rounded in other view.
*Other view with the 270 height ->
Here is what happens when i use this function:

extension HomeViewController: SkeletonTableViewDelegate {
func collectionSkeletonView(_ skeletonView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if indexPath.row == 0 {
return 220
}else{
return 270
}
}
} ->>
*Here is what happens when i dont use the function of height, as you can see the first cell is correct, but the second one is like cutted (because the height should be 270).