title: Is there a targetEnvironment for macCatalyst in SwiftUI?
body: <p>how to make a conditional view in SwiftUI with a targetEnvironment which checks for macCatalyst?</p>
  <p>Something like:</p>
  <pre><code>#if targetEnvironment(macCatalyst)
      print(&quot;macOS&quot;)
  #else
      print(&quot;Your regular code&quot;)
  #endif
  </code></pre>
  <p>But directly in SwiftUI</p>