We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi
Just wondering if it is possible to create sections with section headers like in a UITableView?
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
Sorry for the very late reply. It won't work out of the box, since DropDownMenu.menuCells is a flat array.
DropDownMenu.menuCells
To work around this, you can probably do something along these lines:
DropDownMenu
menuCellsBySection
menuCells
UITableViewDataSource/Delegate
numberOfSections(in:)
tableView(_:, numberOfRowsInSection:)
tableView(_:, heightForRowAt:)
tableView(_:, cellForRowAt:)
tableView(_:, didSelectRowAt:)
selectMenuCell(_:)
It's probably not exactly easy to do, but if you take a look at the source code, it should be doable.
In the long run, DropDownMenuKit could support sections out of the box or I might tweak the API to simplify the workaround above.
Sorry, something went wrong.
No branches or pull requests
Hi
Just wondering if it is possible to create sections with section headers like in a UITableView?
Thanks
The text was updated successfully, but these errors were encountered: