Add Chips, InputStyles, Service Implementation, swift-collections and UI cleanup.

This commit is contained in:
David Langley
2021-08-25 13:03:36 +01:00
parent a7d0fec95d
commit 7a4554f53d
27 changed files with 1076 additions and 326 deletions
@@ -16,6 +16,9 @@
import Foundation
/**
The notification settings screen definitions, used when calling the coordinator.
*/
@objc enum NotificationSettingsScreen: Int {
case defaultNotificaitons
case mentionsAndKeywords
@@ -29,7 +32,10 @@ extension NotificationSettingsScreen: Identifiable {
}
extension NotificationSettingsScreen {
var pushRules: [PushRuleId] {
/**
Defines which rules are handled by each of the screens.
*/
var pushRules: [NotificationPushRuleId] {
switch self {
case .defaultNotificaitons:
return [.oneToOneRoom, .allOtherMessages, .oneToOneEncryptedRoom, .encrypted]