Implemented adding print option to shared data

This commit is contained in:
dankito 2020-10-08 16:58:43 +02:00
parent 4e27bffd09
commit bf9c0bc32b
1 changed files with 5 additions and 1 deletions

View File

@ -129,8 +129,12 @@ struct BankAccountSettingsDialog: View {
accountData.append("\n" + "Bank code \(account.bank.bankCode)".localize()) accountData.append("\n" + "Bank code \(account.bank.bankCode)".localize())
accountData.append("\n" + "Account number \(account.identifier)".localize()) accountData.append("\n" + "Account number \(account.identifier)".localize())
let attributes = [NSAttributedString.Key : Any]()
let string = NSAttributedString(string: accountData, attributes: attributes)
let print = UISimpleTextPrintFormatter(attributedText: string)
let activityViewController = UIActivityViewController(activityItems: [accountData], applicationActivities: nil)
let activityViewController = UIActivityViewController(activityItems: [ accountData, print ], applicationActivities: nil)
let viewController = SceneDelegate.rootViewController let viewController = SceneDelegate.rootViewController