gonzalezreal / swift-markdown-ui

Display and customize Markdown text in SwiftUI
MIT License
2.24k stars 266 forks source link

fix macCatalyst build failure: re-order `#if canImport(UIKit)` #283

Closed kirkbig closed 6 months ago

kirkbig commented 6 months ago

by placing #if canImport(UIKit) first, it means that building for #if targetEnvironment(macCatalyst) doesn't fail attempting to use and link in AppKit things (since macCatalyst apps can link both UIKit and AppKit