There is no viewcontroller.swift file when I start the project : <p>I tried to start the project and play around with viewcontroller but I do not see it.
Only appdelegate and scenedelegeate and contentview.
The code below was supposed to be added to viewcontroller but I do not know where to add.
It keeps giving me a error message saying unresolved identifier present and action.
please help.</p>

<pre><code>    @IBAction func hello() {
        // add alert

        let alert = UIAlertController(title: "hello", message: "daaaammmmmn", preferredStyle: .alert)
        let okAction = UIAlertAction(title: "ok", style: .default, handler: nil)
        alert.addAction(action)

        present(alert, animated: true, completion: nil)

}
</code></pre>

<p><a href="https://i.stack.imgur.com/CxDJH.jpg" rel="nofollow noreferrer"> </a></p>
