title: Overriding the class's property swift
body: <p>I want to override the <strong>ContentMode</strong> of the <strong>UIImageView</strong> so I wrote this code but it doesn't seem to work as expected.</p>
  
  <pre><code>class AspectFitUIImageView: UIImageView {
  
      override var contentMode: UIViewContentMode {
          get {
              return .scaleAspectFit
          }
  
          set {
              // contentMode = contentMode
          }
      }
  }
  </code></pre>
  
  <p>Can any one tell me where I am wrong?</p>