Answers for "uitableview selection color swift ui"

1

change selection color uitableviewcell swift

override func setSelected(_ selected: Bool, animated: Bool) {
     super.setSelected(selected, animated: animated)

     if selected {
         contentView.backgroundColor = UIColor.green
     } else {
         contentView.backgroundColor = UIColor.blue
     }
 }
Posted by: Guest on July-27-2020

Code answers related to "uitableview selection color swift ui"

Code answers related to "Swift"

Browse Popular Code Answers by Language