I'm creating a tableview on tvOS. The UITableViewWrapperView
is subview of UITableView
and there is a leading and trailing padding between them. How can I remove these paddings? Thanks?
I solved it with the following setup:
tableView.contentInsetAdjustmentBehavior = .never
tableView.insetsContentViewsToSafeArea = false
tableView.insetsLayoutMarginsFromSafeArea = false
tableView.preservesSuperviewLayoutMargins = false
Note, remember the tvOS guidelines recommends at least 90px spacing for left and right, and 60px spacing for top and bottom.
https://developer.apple.com/design/human-interface-guidelines/tvos/visual-design/layout/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With