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

Embedding TableView as row #69

Closed
nomad10101 opened this issue Aug 21, 2019 · 1 comment
Closed

Embedding TableView as row #69

nomad10101 opened this issue Aug 21, 2019 · 1 comment

Comments

@nomad10101
Copy link

Can I embed a UITableView as a row? I am unable to accomplish this currently. The containing AloeStackView seems to ignore the TableView contents. TableView datasource function (func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell) is never called.

@apang42
Copy link
Collaborator

apang42 commented Aug 29, 2019

Hi @nomad10101, thanks for reaching out! Putting a UITableView inside an AloeStackView is not supported. Since AloeStackView has UIScrollView and so does UITableView, nesting them wouldn't work properly. Instead of doing this, you could consider adding the contents of the table view to the stack view as separate rows, or you could just put everything in a table view and not use a stack view at all. Feel free to reopen this if you have any questions about this.

@apang42 apang42 closed this as completed Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants