Closed vkcldhkd closed 4 years ago
Same issue here :(
as for me, add width constraint of your headerView cant fix this issue
I have the same issue
I have the same issue. I fixed it like this.
tableViewHeaderView = TableHeader(frame: view.bounds)
tableViewHeaderView.translatesAutoresizingMaskIntoConstraints = false
tableView.parallaxHeader.view = tableViewHeaderView
tableView.parallaxHeader.height = view.frame.height * 0.6
tableView.parallaxHeader.mode = .fill
tableView.parallaxHeader.minimumHeight = 0
tableViewHeaderView.widthAnchor.constraint(equalTo: tableView.widthAnchor).isActive = true
Nice fix, it works perfectly for me !
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.
Getting the same issue. The above-mentioned solution is also not working when header is instantiated from the nib.
Scroll not working after I am adding width constraint! please help
Above solutions didn't work same error
Issue is in your latest version of pod 0.6.1 this release version of your code working fine
Same problem here and thanks to @Nahatakyan , below code fix it;
tableViewHeaderView.translatesAutoresizingMaskIntoConstraints = false tableViewHeaderView.widthAnchor.constraint(equalTo: tableView.widthAnchor).isActive
I solved this problem fixing width in my header view!
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.
Issue Description
Environment Information
Your Code
Screenshot
by MXParallaxHeader 0.6.1
by MXParallaxHeader 1.1.0