We have many subclasses of UIView and UIViewController with custom initializers, and with Xcode Beta 5 we must specify an initializer required init(coder:)for each of these subclasses to satisfy the compiler:
required init(coder aDecoder: NSCoder) {
fatalError( "NSCoding not supported")
}
We do not use Interface Builder or Storyboard, therefore NSCoding compliance is not required for our project. Is there a way to tell the compiler that this is normal if this method is not implemented without the need to add the above code to each new subclass?
source
share