title: Is it possible to change TableView style based on size classes?
body: <p>I have controller which has tableview inside. I want to change that tableview style to be <em>grouped</em> on compact and <em>insetGrouped</em> on regular devices. I want to use new iOS 13 tableview style whenever user rotates his device to regular size. </p>
  
  <pre><code>class myTableVC: UITableViewController {
  
     init() {
        super.init(style: .grouped)
     }
  
     override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
        if traitCollection.horizontalSizeClass == .regular {
           // CANT DO THIS
           // self.tableview.style = .insetGrouped
        }
     }
  
  
  } 
  </code></pre>
  
  <p>I want to have similar design to settings app. 
  Is it possible to change style?</p>