I have given a tableview cell a color on selection in cellForRowAtIndexPath using
cellForRowAtIndexPath
let backgroundView = UIView() backgroundView.backgroun
If you use the hierarchy debugger, you'll see that in iOS 13 the contentView sits above the backgroundView and selectedBackgroundView.
contentView
backgroundView
selectedBackgroundView
This can be resolved by setting
contentView.backgroundColor = nil
in awakeFromNib
awakeFromNib
or setting the contentView's backgroundColour to clear in the storyboard
backgroundColour