title: why can't I override a method that returns some View?
body: <p>In the following example</p>
  <pre><code>import SwiftUI
  
  class AbstractOverride {
      open func configurationView() -&gt; AnyView {
          if Features.TEST_VERSION {
              return AnyView(Text(&quot;override configurationView()&quot;))
          } else {
              return AnyView(EmptyView())
          }
      }
      
      open func someConfigurationView() -&gt; some View {
          if Features.TEST_VERSION {
              return AnyView(Text(&quot;override someConfigurationView()&quot;))
          } else {
              return AnyView(EmptyView())
          }
      }
  
  }
  
  class SubclassOverride: AbstractOverride {
      override func configurationView() -&gt; AnyView { // no compiler error
          return AnyView(Text(&quot;Test&quot;))
      }
  
      override func someConfigurationView() -&gt; some View { // compiler error &quot;Method does not override any method from its superclass&quot;
          return AnyView(Text(&quot;Test&quot;))
      }
  }
  </code></pre>
  <p>I get a compiler error <code>compiler error &quot;Method does not override any method from its superclass&quot;</code> at <code>override func someConfigurationView() -&gt; some View</code>.</p>
  <p>There is no compiler error returning <code>AnyView</code>.</p>
  <p>can anybody explain what is happening here? Why does Swift not recognise that the method signatures are the same?</p>
  <p>This is iOS 13, Xcode 11.5</p>