From dde194ad3da27cf9ea9d7f5c34f4d58dba22460a Mon Sep 17 00:00:00 2001 From: yishilin14 Date: Tue, 28 Feb 2017 10:28:14 +0800 Subject: [PATCH] Copy generated passwords to the clipboard. --- pass/Views/FillPasswordTableViewCell.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/pass/Views/FillPasswordTableViewCell.swift b/pass/Views/FillPasswordTableViewCell.swift index 8ea7d97..03b4dcc 100644 --- a/pass/Views/FillPasswordTableViewCell.swift +++ b/pass/Views/FillPasswordTableViewCell.swift @@ -25,6 +25,7 @@ class FillPasswordTableViewCell: ContentTableViewCell { @IBAction func generatePassword(_ sender: UIButton) { let plainPassword = Utils.randomString(length: 16) contentTextField.attributedText = Utils.attributedPassword(plainPassword: plainPassword) + Utils.copyToPasteboard(textToCopy: plainPassword) } override func getContent() -> String? {