SwiftstructUserNotificationsKit

struct UserNotificationsKit.SourceList

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 6

  1. fieldvar _iconCache: SwiftUI.StateObject<UserNotificationsKit.NotificationSourceIconCache>
  2. fieldvar _viewModel: SwiftUI.State<UserNotificationsKit.ToggleListViewModel>
  3. fieldlet footerText: String?
  4. fieldlet headerText: String?
  5. fieldlet supportsGranularSyncing: Bool
  6. typealiastypealias Body = SwiftUI.Section<Swift.Optional<SwiftUI.Text>, SwiftUI.ModifiedContent<SwiftUI.ForEach<Swift.Array<__C.UNNotificationSource>, Swift.String, SwiftUI._ConditionalContent<UserNotificationsKit.SourceList.NotificationSourceIconToggle, UserNotificationsKit.SourceList.NotificationSourceIconLabel>>, SwiftUI._EnvironmentKeyWritingModifier<Swift.Optional<UserNotificationsKit.NotificationSourceIconCache>>>, Swift.Optional<SwiftUI.Text>>
struct SourceList {
    struct NotificationSourceIconLabel {
        let source: __C.UNNotificationSource
        let isEnabled: Swift.Bool
        var _iconCache: SwiftUI.EnvironmentObject<UserNotificationsKit.NotificationSourceIconCache>
    }
    struct NotificationSourceIconToggle {
        let source: __C.UNNotificationSource
        let isEnabled: Swift.Bool
        let onEnablementChange: (_: Swift.Bool) -> ()
        var _iconCache: SwiftUI.EnvironmentObject<UserNotificationsKit.NotificationSourceIconCache>
    }
    var _viewModel: SwiftUI.State<UserNotificationsKit.ToggleListViewModel>
    var _iconCache: SwiftUI.StateObject<UserNotificationsKit.NotificationSourceIconCache>
    let headerText: Swift.String?
    let footerText: Swift.String?
    let supportsGranularSyncing: Swift.Bool
}