Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Shimmering All the Table Header view #14

Open
anandgupadhyay opened this issue Jan 11, 2024 · 0 comments
Open

Not Shimmering All the Table Header view #14

anandgupadhyay opened this issue Jan 11, 2024 · 0 comments

Comments

@anandgupadhyay
Copy link

anandgupadhyay commented Jan 11, 2024

I have created Custom Label and Button and confirmed to ShimmeringViewProtocol

Like this
class MyLabel : UILabel, ShimmeringViewProtocol{... class MyTableView: UIButton, ShimmeringViewProtocol{...

and in table Header used these label and Button and then in display method
func tableView(_ tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int){ tableView.setTemplateWithSubviews(isLoading, viewBackgroundColor: .gray) }

and once I get the data I simply turn the boolean off and reload the. table
self?.isLoading = false self?.Table.reloadData()
Still Animation is appearing for first 2 Sections headers only
IMG_0510

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant