I'm trying to instantiate a storyboard from a button press inside a collection view cell but am coming across errors:
class sampleCell: UICollectionViewCell {
@IBAction func infoButtonPressed(_ sender: Any) {
let vc = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "InputViewController") as! InputViewController//error: Use of undeclared type "InputViewController"
present(vc, animated: false)//error:Use of unresolved identifier 'present'
}
}
Any idea how to do this?