I am not fluent in English. Sorry...
I have a modalView with collectionView. I use didselect function. If I select a cell, the modalView will dismiss, and want to move originView -> newView.
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
dismiss(animated: true, completion: nil)
performSegue(withIdentifier: "NewView", sender: nil)
}
It dose not work. Just dismiss not performSegue. How should I do