mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 15:38:28 +02:00
Update RiotSwiftUI symbols to triple slash documentation style with function annotations.
This commit is contained in:
@@ -16,11 +16,10 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
/**
|
||||
Index that determines the state of the push setting.
|
||||
Silent case is un-unsed on iOS but keeping in for consistency of
|
||||
definition across the platforms.
|
||||
*/
|
||||
/// Index that determines the state of the push setting.
|
||||
///
|
||||
/// Silent case is un-used on iOS but keeping in for consistency of
|
||||
/// definition across the platforms.
|
||||
enum NotificationIndex {
|
||||
case off
|
||||
case silent
|
||||
@@ -30,16 +29,14 @@ enum NotificationIndex {
|
||||
extension NotificationIndex: CaseIterable { }
|
||||
|
||||
extension NotificationIndex {
|
||||
/**
|
||||
Used to map the on/off checkmarks to an index used in the static push rule definitions.
|
||||
*/
|
||||
/// Used to map the on/off checkmarks to an index used in the static push rule definitions.
|
||||
/// - Parameter enabled: Enabled/Disabled state.
|
||||
/// - Returns: The associated NotificationIndex
|
||||
static func index(when enabled: Bool) -> NotificationIndex {
|
||||
return enabled ? .noisy : .off
|
||||
}
|
||||
|
||||
/**
|
||||
Used to map from the checked state back to the index.
|
||||
*/
|
||||
/// Used to map from the checked state back to the index.
|
||||
var enabled: Bool {
|
||||
return self != .off
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user