Add search and copy password in extension
- no lock screen for now - share keychain between app and extension
This commit is contained in:
parent
abe1c46d83
commit
8e5a824cca
11 changed files with 362 additions and 132 deletions
18
passextension/UtilsExtension.swift
Normal file
18
passextension/UtilsExtension.swift
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
//
|
||||
// UtilsExtension.swift
|
||||
// pass
|
||||
//
|
||||
// Created by Yishi Lin on 13/6/17.
|
||||
// Copyright © 2017 Bob Sun. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import passKit
|
||||
|
||||
extension Utils {
|
||||
static func alert(title: String, message: String, controller: UIViewController, handler: ((UIAlertAction) -> Void)? = nil, completion: (() -> Void)? = nil) {
|
||||
let alert = UIAlertController(title: title, message: message, preferredStyle: UIAlertControllerStyle.alert)
|
||||
alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.default, handler: handler))
|
||||
controller.present(alert, animated: true, completion: completion)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue