Polish notification
- define notification names - move "post notification" to PasswordStore (todo: move "search" and the one for "show folder switch") - "erase" and "reset" also post the "passwordStoreUpdated" notification
This commit is contained in:
parent
0ad9713fc0
commit
1f829fffcc
11 changed files with 41 additions and 29 deletions
16
pass/Helpers/NotificationNames.swift
Normal file
16
pass/Helpers/NotificationNames.swift
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
//
|
||||
// NotificationNames.swift
|
||||
// pass
|
||||
//
|
||||
// Created by Yishi Lin on 17/3/17.
|
||||
// Copyright © 2017 Yishi Lin, Bob Sun. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
extension Notification.Name {
|
||||
static let passwordStoreUpdated = Notification.Name("passwordStoreUpdated")
|
||||
static let passwordStoreErased = Notification.Name("passwordStoreErased")
|
||||
static let passwordStoreChangeDiscarded = Notification.Name("passwordStoreChangeDiscarded")
|
||||
static let passwordSearch = Notification.Name("passwordSearch")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue