gitbay/Views/Shared/ChangeNotices.swift

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

11 lines · 576 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}