How can you set the accessibility of subviews of UITableViewCells individually.
It should not be accessible as complete cell?
Contributing to the answer of @ma11hew28, here is another way of doing that saves some lines of code,
Swift 5:
class ServiceTableViewCell: UITableViewCell {
    override func awakeFromNib() {
        super.awakeFromNib()
        self.selectionStyle = .none
        self.isAccessibilityElement = false //not allowing accessibility for the cell itself
        self.accessibilityElements = [mySubview1!, mySubview2!, mySubview3!] // but allowing accessibility in the cell's subviews
    }
}
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With