Как мне отформатировать UITextFileds, которые печатаются из моего приложения - PullRequest
0 голосов
/ 21 апреля 2020
    Button to call code

    @IBAction func Print(_ sender: Any) {
    let name = nameText.text!
    let address = addressText.text!
    let phone = phoneText.text!
    let post = postCode.text!

    Name, address, etc prints out but no formatting or spaces

let controller = UIActivityViewController (activityItems: [имя + адрес + телефон + почта], активность приложения: ноль)

    controller.excludedActivityTypes = [.postToFacebook, .postToTwitter, .print, .copyToPasteboard, .assignToContact, .saveToCameraRoll, .mail]

    self.present(controller, animated: true, completion: nil)
    }
...