Skeletonview: UITableView Frozen

Created on 5 May 2018  路  7Comments  路  Source: Juanpe/SkeletonView

What did you do?

I Added TableView And all subviews Programmatically and Using Coordinator Delegate so There is no Storyboard or xib files. and registered cell like below
tableview.register(SearchTableViewCell.self, forCellReuseIdentifier: "searchcell")
and set tableview, cell and all subviews isSkeletonable to true.

What did you expect to happen?

It replace my subviews with grey boxes

What happened instead?

TableVIew with visible cells frozen to death.

Steps to reproduce the behavior

I am not using interface builder.

SkeletonView Environment

SkeletonView version: 1.1.1
Xcode version: 9.3
Swift version: 4

given up 馃棏 given up 馃 possible bug

Most helpful comment

Hi @grifas and @aboutsajjad, I'm going to check it asap 馃檪

All 7 comments

Same issue here.

I don't use storyboards/xibs. I add my tableView in viewDidLoad and like you, set its constraints, register my custom cell, set all subviews isSkeletonable to true but when I call view.showAnimatedSkeleton() in viewDidLoad or viewWillAppear it doesn't work (no animation) while it works in viewDidAppear.

With a cell xib, like in the example, it works in each method.

EDIT: See this project to see the issue: https://github.com/grifas/SkeletonViewIssue

Hi @grifas and @aboutsajjad, I'm going to check it asap 馃檪

Hi @Juanpe Have you some news ?

@aboutsajjad I think I found a solution. I call in viewDidLoad:

DispatchQueue.main.async {
    self.view.showAnimatedSkeleton()
}

@grifas it helped, thanks

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings