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

CollectionHeaderFooterAdapter events.dequeue don't work #6

Closed
enxibaba opened this issue May 11, 2019 · 1 comment
Closed

CollectionHeaderFooterAdapter events.dequeue don't work #6

enxibaba opened this issue May 11, 2019 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@enxibaba
Copy link

enxibaba commented May 11, 2019

let headerAdapter = CollectionHeaderFooterAdapter<EmojiHeaderView> { cfg in
    cfg.events.dequeue = { ctx in
		// -- Why don't call back here?
		ctx.view?.titleLabel.text = ctx.section?.identifier ?? "-"
    }
            
    cfg.events.referenceSize = { ctx in
		return CGSize(width: self.view.frame.size.width, height: 127)
    }
}
director?.registerHeaderFooterAdapter(headerAdapter)
@malcommac malcommac self-assigned this May 12, 2019
@malcommac malcommac added the bug Something isn't working label May 12, 2019
@malcommac malcommac added this to the 1.0.2 milestone May 12, 2019
@malcommac
Copy link
Owner

Thank you for your report. I had just fixed it for 1.0.2 milestone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants