Notification+UI.swift 822 Bytes
Newer Older
Davide De Rosa's avatar
Davide De Rosa committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//
//  Notification+UI.swift
//  PIALibrary-iOS
//
//  Created by Davide De Rosa on 12/30/17.
//  Copyright © 2017 London Trust Media. All rights reserved.
//

import Foundation

// TODO: make this (mostly) work for both iOS and macOS
// e.g. use Macros always, which in turn may return UIColor/NSColor

public extension Notification.Name {
    
    // MARK: UI
    
    /// Posted following a theme switch.
19
    static let PIAThemeDidChange = Notification.Name("PIAThemeDidChange")
20
21
    
    /// Reload the tiles.
22
    static let PIATilesDidChange = Notification.Name("PIATilesDidChange")
Jose Blaya's avatar
Jose Blaya committed
23
24
    
    /// Present Recover Signup page
25
26
27
28
    static let PIARecoverAccount = Notification.Name("PIARecoverAccount")

    /// User toggled the dark mode
    static let PIAThemeShouldChange = Notification.Name("PIAThemeShouldChange")
29

Davide De Rosa's avatar
Davide De Rosa committed
30
}