mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 00:52:43 +02:00
[Spaces] M10.4.1 Home space data filtering #4570
- Improved visual feedback when switching home settings
This commit is contained in:
@@ -62,6 +62,8 @@ class SpaceMenuSwitchViewCell: UITableViewCell, SpaceMenuCell, NibReusable {
|
||||
} else {
|
||||
self.titleLabel.textColor = theme.colors.primaryContent
|
||||
}
|
||||
|
||||
viewData.delegate = self
|
||||
}
|
||||
|
||||
func update(theme: Theme) {
|
||||
@@ -72,3 +74,10 @@ class SpaceMenuSwitchViewCell: UITableViewCell, SpaceMenuCell, NibReusable {
|
||||
self.selectionView.backgroundColor = theme.colors.separator
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - SpaceMenuListItemViewDataDelegate
|
||||
extension SpaceMenuSwitchViewCell: SpaceMenuListItemViewDataDelegate {
|
||||
func spaceMenuItemValueDidChange(_ item: SpaceMenuListItemViewData) {
|
||||
self.switchView.setOn((item.value as? Bool) ?? false, animated: true)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user