title: Swift Today Extension preferredContentSize not resizing
body: <p>so like the description says I am working on an iOS App and wanted to create a Today Extension Widget for it. My Problem is that I wanted to change the height to 200. After researching the only solution I found was to use the preferredContentSize atribute but this wasn't working for me.</p>
  
  <p>I want to add a tableView to it and I wanted it to beshould be fully shown.
  I added the viewDidLoad method so you can see where the table is created and added.</p>
  
  <pre><code>override func viewDidLoad() {
      super.viewDidLoad()
  
      let myDefaults = UserDefaults(suiteName: "group.com.iOSApp")!
      let eventData = myDefaults.object(forKey: "events")
  
      if eventData != nil {
          shownEvents = NSKeyedUnarchiver.unarchiveObject(with: eventData as! Data) as! [Event]
      }
  
      eventTable = UITableView()
      eventTable.register(TodayViewCell.self, forCellReuseIdentifier: "cell")
      eventTable.separatorColor = UIColor.primary()
      view.addSubview(eventTable)
      eventTable.translatesAutoresizingMaskIntoConstraints = false
  
      var tempX = NSLayoutConstraint(item: eventTable, attribute: .leading, relatedBy: NSLayoutRelation.equal, toItem: view, attribute: .leading, multiplier: 1, constant: 0)
      var tempY = NSLayoutConstraint(item: eventTable, attribute: .top, relatedBy: NSLayoutRelation.equal, toItem: view, attribute: .top, multiplier: 1, constant: 0) 
      NSLayoutConstraint.activate([tempX, tempY])
  
      tempX = NSLayoutConstraint(item: eventTable, attribute: .trailing, relatedBy: NSLayoutRelation.equal, toItem: view, attribute: .trailing, multiplier: 1, constant: 0)
      tempY = NSLayoutConstraint(item: eventTable, attribute: .bottom, relatedBy: NSLayoutRelation.equal, toItem: view, attribute: .bottom, multiplier: 1, constant: 0)   
      NSLayoutConstraint.activate([tempX, tempY])
  
  
      eventTable.delegate = self
      eventTable.dataSource = self
  
      eventTable.reloadData()
  
      preferredContentSize.height = 200
  
  
  }
  </code></pre>