Why do i encounter 'initializer does not override a designated initializer from its superclass' in swift?

This error occurs when you attempt to override a superclass's designated initializer without using the `override` keyword or when there's a mismatch between initializers.

Example:

  class Parent {
      init() { }
  }
  class Child: Parent {
      init(someValue: Int) { }
  }
  
Solution:

  class Child: Parent {
      override init() {
          super.init()
      }
      init(someValue: Int) {
          super.init()
      }
  }
  

Beginner's Guide to Swift