Copy generated passwords to the clipboard.

This commit is contained in:
yishilin14 2017-02-28 10:28:14 +08:00
parent fa512e6c86
commit dde194ad3d

View file

@ -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? {