Unless the Picker is closed, the data contained in the right labels of the cells below are deleted.
Can you help me to resolve?
I changed this to the AUPickerCell.swift class to increase the height of the list when opening the picker:
public func selectedInTableView(_ tableView: UITableView) {
let unexpandedHeightList = CGFloat(Double(tableView.numberOfRows(inSection: 0)) * 29.5)
let expandedHeightList = unexpandedHeightList + picker.bounds.height
let heightList = !self.expanded ? expandedHeightList : unexpandedHeightList
print(heightList)
let expandedFrame = CGRect(x: tableView.frame.origin.x,
y: tableView.frame.origin.y,
width: tableView.bounds.width,
height: heightList)
print(expandedFrame.height)
if !expanded {
rightLabelTextColor = rightLabel.textColor
}
expanded = !expanded
UIView.transition(with: rightLabel, duration: 0.15, options: .transitionCrossDissolve , animations: { [unowned self] in
tableView.frame = expandedFrame
self.rightLabel.textColor = self.expanded ? self.tintColor : self.rightLabelTextColor
})
tableView.beginUpdates()
tableView.endUpdates()
}

Unless the Picker is closed, the data contained in the right labels of the cells below are deleted.
Can you help me to resolve?
I changed this to the AUPickerCell.swift class to increase the height of the list when opening the picker:
public func selectedInTableView(_ tableView: UITableView) {
let unexpandedHeightList = CGFloat(Double(tableView.numberOfRows(inSection: 0)) * 29.5)
let expandedHeightList = unexpandedHeightList + picker.bounds.height
let heightList = !self.expanded ? expandedHeightList : unexpandedHeightList
print(heightList)
let expandedFrame = CGRect(x: tableView.frame.origin.x,
y: tableView.frame.origin.y,
width: tableView.bounds.width,
height: heightList)
print(expandedFrame.height)
if !expanded {
rightLabelTextColor = rightLabel.textColor
}
expanded = !expanded
UIView.transition(with: rightLabel, duration: 0.15, options: .transitionCrossDissolve , animations: { [unowned self] in
tableView.frame = expandedFrame
self.rightLabel.textColor = self.expanded ? self.tintColor : self.rightLabelTextColor
})
tableView.beginUpdates()
tableView.endUpdates()
}