gitbay/Views/Shared/ChangeNotices.swift

v1.13.1
gitbay-ios/gitbay/Views/Shared/ChangeNotices.swift history · blame · raw

13 lines · 715 bytes

 1import Foundation
 2
 3/// Writes on one screen that change what another, already on the stack
 4/// underneath, is showing. The one-shot `.task` loads of those screens do
 5/// not run again on a pop, so they listen for these instead.
 6extension Notification.Name {
 7    /// A repository was deleted, moved or renamed; `object` is its old path.
 8    static let gitbayRepositoryChanged = Notification.Name("gitbayRepositoryChanged")
 9    /// A saved query was saved, pinned, unpinned or removed.
10    static let gitbaySavedQueriesChanged = Notification.Name("gitbaySavedQueriesChanged")
11    /// An instance admin created or deleted an account.
12    static let gitbayAccountsChanged = Notification.Name("gitbayAccountsChanged")
13}