     self.tableView.delegate = self
     self.expandedCells = []
     self.tableView.estimatedRowHeight = 50
-    self.tableView.rowHeight = UITableViewAutomaticDimension
     self.tableView.tableFooterView = UIView()
     self.titleLabel = UILabel()
     self.titleLabel.translatesAutoresizingMaskIntoConstraints = false

  }
  
  func updateSection(_ section: Int) {
    guard let cell = tableView.cellForRow(at: IndexPath(row: 0, section: section)) as? FAQViewCell else { return }
    let currentItem = items[section]
    if expandedCells.contains(section) {
      let index = expandedCells.index(of: section)
      expandedCells.remove(at: index!)
      cell.collapse(animated: true)
    } else {
      expandedCells.append(section)
      cell.expand(withAnswer: currentItem.answer, animated: true)
    }
    tableView.beginUpdates()
    tableView.endUpdates()
  }
  
  }

extension FAQView: UITableViewDelegate, UITableViewDataSource {
  
  public func numberOfSections(in tableView: UITableView) -> Int {
    return items.count

  }
  
  var configuration = FAQConfiguration()
  var heightAtIndexPath = NSMutableDictionary()
  
  public init(frame: CGRect,title: String = "Top Queries", items: [FAQItem]) {
    self.items = items
