Не могу понять, что мне надо передать в массив
import UIKit
private let reuseIdentifier = “show”
class CollectionViewController: UICollectionViewController {
var listOfAlluminati = [“Никита(Режиссер)”,
“Игорь(Лысый)”,
“Артем(Хомяк)”,
“Женя(Водила)”,
“Валера(Монтажер)”,
“Максим(Подрывник)”,
“Даниил(CJ)”]
override func viewDidLoad() {
super.viewDidLoad()
}
override func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
return listOfAlluminati.count
}
override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: reuseIdentifier, for: indexPath) as! ViewCell
cell.image.image = UIImage(named: listOfAlluminati[indexPath.row])
return cell
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "showDetails" {
if let indexPath = self.collectionView.indexPathsForSelectedItems {
let detailsVC = segue.destination as? SegueView
detailsVC?.alluminatiPicker = listOfAlluminati[ВОТ СЮДА ВСТАВИТЬ]
}
}
}
}