I want to share several values in the form of a table through activityViewController, so it was nice, something like this ... 
And it turns out just one by one columns down. There are three parameters that store values in arrays.
let name = ["Андрей", "Виктор", "Сергей", "Олег"] let weight = ["60", "70", "80", "90"] let height = ["160", "170", "180", "190"] let people = String(format: "Были три товарища: \n Имя Вес Рост\n%@", arguments: [name.joined(separator: "\n"), weight.joined(separator: "\n"), height.joined(separator: "\n")]) let activityViewController: UIActivityViewController = UIActivityViewController(activityItems: [people], applicationActivities: nil) self.present(activityViewController, animated: true, completion: nil)