It turns out it needed IBOutlet as described here:
https://www.youtube.com/watch?app=desktop&v=CVqdylyDSao
So within viewcontroller:
@IBOutlet var nameOfview: MapView!
and nameOfview can be referenced.