minor refactor
This commit is contained in:
parent
e7778725a5
commit
82aa2d0931
|
@ -170,7 +170,7 @@ final class NewClosedGroupVC: BaseVC, UITableViewDataSource, UITableViewDelegate
|
|||
with: searchResults[indexPath.row].id,
|
||||
profile: searchResults[indexPath.row],
|
||||
isZombie: false,
|
||||
accessory: .o(isSelected: selectedContacts.contains(searchResults[indexPath.row].id))
|
||||
accessory: .radio(isSelected: selectedContacts.contains(searchResults[indexPath.row].id))
|
||||
)
|
||||
|
||||
return cell
|
||||
|
|
|
@ -11,7 +11,7 @@ final class UserCell: UITableViewCell {
|
|||
case none
|
||||
case lock
|
||||
case tick(isSelected: Bool)
|
||||
case o(isSelected: Bool)
|
||||
case radio(isSelected: Bool)
|
||||
case x
|
||||
}
|
||||
|
||||
|
@ -159,7 +159,7 @@ final class UserCell: UITableViewCell {
|
|||
accessoryImageView.image = #imageLiteral(resourceName: "X").withRenderingMode(.alwaysTemplate)
|
||||
accessoryImageView.contentMode = .center
|
||||
accessoryImageView.tintColor = Colors.text
|
||||
case .o(let isSelected):
|
||||
case .radio(let isSelected):
|
||||
accessoryImageView.isHidden = true
|
||||
roundSelectionView.isHidden = false
|
||||
roundSelectionView.update(isSelected: isSelected)
|
||||
|
|
Loading…
Reference in New Issue