I tried to start and go from Obj-C to Swift today and I was reading the documentation. I tried to create an easy IBOutlet in Swift and it constantly gave me those errors.
View Controller has no initialiser
required init(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") }
IBOutletproperty has non-optional type 'UILabel'
and that constantly pops up with this code:
@IBOutlet var outputLabel : UILabel
but when I add an ! mark, it's running without errors like so
@IBOutlet var outputLabel : UILabel!
Same thing happens for IBActions...
IBOutlet
decorator made the property optional as well, this was changed very early on. – Borax