I modified the UITableViewCell sub class to include subtitle not working. When I collapse and expand the parent node few times, the detail label text in children is copied to parent. You have not provided your component to include subtitle by default, I need to modify your code, to do that. I hope you have given the screenshot with subtitle example, but your component doesn't have the feature
class CustomUITableViewCell: UITableViewCell
{
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: .subtitle, reuseIdentifier: reuseIdentifier)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func layoutSubviews() {
super.layoutSubviews();
guard var imageFrame = imageView?.frame else { return }
let offset = CGFloat(indentationLevel) * indentationWidth
imageFrame.origin.x += offset
imageView?.frame = imageFrame
}
}
I modified the UITableViewCell sub class to include subtitle not working. When I collapse and expand the parent node few times, the detail label text in children is copied to parent. You have not provided your component to include subtitle by default, I need to modify your code, to do that. I hope you have given the screenshot with subtitle example, but your component doesn't have the feature
detail label as follows in