Juanpe / SkeletonView

☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
MIT License
12.51k stars 1.1k forks source link

Height for Section : Skeleton Table #424

Open devshamzi opened 2 years ago

devshamzi commented 2 years ago

Table Section Height

I have a tableView with. a different section with custom height. So, how I can set the same height for the skeleton tableView?

Attachments:

IMG_2300

Juanpe commented 2 years ago

Hi @devshamzi, it's not possible to define more than one header height. This could be a good enhancement. I'll add it to the backlog. Feel free to create a PR with a solution :)

Juanpe commented 2 years ago

Hi @devshamzi, in your case, the row height is defined or you are using automaticDimension?

devshamzi commented 2 years ago

Hi @Juanpe , I have set the row height as a static value.

func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { if IndexPath.row == 0{ return 174 }else { return 256 } }

maadlog commented 2 years ago

Hi @Juanpe! I'd love to work on this one if it's available

Juanpe commented 2 years ago

Hi @maadlog! yeah, all yours :)

maadlog commented 2 years ago

Hi @Juanpe, PR submitted 😄. Please let me know if there is something i missed on the process. Thanks in advance!