mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +02:00
@@ -49,20 +49,10 @@ class SpaceMenuSwitchViewCell: UITableViewCell, SpaceMenuCell, NibReusable {
|
||||
|
||||
// MARK: - Public
|
||||
|
||||
func fill(with viewData: SpaceMenuListItemViewData) {
|
||||
func update(with viewData: SpaceMenuListItemViewData) {
|
||||
self.titleLabel.text = viewData.title
|
||||
self.switchView.isOn = (viewData.value as? Bool) ?? false
|
||||
|
||||
guard let theme = self.theme else {
|
||||
return
|
||||
}
|
||||
|
||||
if viewData.style == .destructive {
|
||||
self.titleLabel.textColor = theme.colors.alert
|
||||
} else {
|
||||
self.titleLabel.textColor = theme.colors.primaryContent
|
||||
}
|
||||
|
||||
viewData.delegate = self
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user