Reputation:
I have a collectionView inside the table cells, but i can only click on the table cells.
Is there a way to disable user interaction on the table cells but enable it on the collectionCells inside the table cells, or a way to enter inside the table cells?
I show you an image below, where i cant click on the videos.
I am trying whit this and it works, but i cant scroll up the table view, i can only scroll down
public override var preferredFocusEnvironments: [UIFocusEnvironment] {
return [collectionView]
}
Upvotes: 0
Views: 78
Reputation:
Solved it by adding this code to my TableViewCell:
public override var canBecomeFocused: Bool {
return false
}
Upvotes: 0