As of iOS 13, Apple has released an official version of this table view style called UITableViewStyleInsetGrouped
! Yay! In order to officially adopt this style, while still providing backwards compatibility to iOS 11, I’ve created a new library called TOInsetGroupedTableView
. Moving forward, please only use TORoundedTableView
if you still need to support iOS 10 or lower in your apps. 🙂
TORoundedTableView
is a subclass of the standard UIKit UITableView
class. Harkening back to the days of iOS 6, it overrides the standard grouped UITableView
appearence and behaviour to match the borderless, rounded corner style seen in the Settings app on every iPad since iOS 7.
As iOS device screens increased (Like iPhone 6 Plus and the original iPad Pro), there are a lot of UI design cases where the ‘edge-to-edge’ style of the stock grouped UITableView
doesn’t make sense, and will end up looking rather distorted in ultra-wide regions.