TableViewCell:
@IBOutlet weak var tagsView: UIView!
let tagsView = cell.tagsView!
let tagsField = WSTagsField()
tagsView.addSubview(tagsField)
tagsField.frame = tagsView.frame
tagsField.placeholder = "Добавить тэг ..."
tagsField.returnKeyType = .next
tagsField.delimiter = " "
tagsField.layer.cornerRadius = 3.0
tagsField.font = .systemFont(ofSize: 14.0)
tagsField.onDidChangeHeightTo = { _, height in
print("HeightTo \(height)")
UIView.setAnimationsEnabled(false)
tableView.beginUpdates()
tableView.endUpdates()
UIView.setAnimationsEnabled(true)
}