gonzalezreal / swift-markdown-ui

Display and customize Markdown text in SwiftUI
MIT License
2.25k stars 267 forks source link

visionOS support (new method) #252

Closed Rminsh closed 10 months ago

Rminsh commented 10 months ago

Since the project is using the UIKit most of the times (iOS, watchOS, tvOS, visionOS, mac catalyst) instead of specifying os check types, we should use #if canImport(UIKit). So in future if apple added any type of device (such as glasses 😁) and that device can use UIKit, we don't have to change anything (even we don't have to specify any swift version check).

Also this can be removed from package.swift if there is any problem with Xcode 14 (couldn't confirm that):

.custom("visionOS", versionString: "1.0")

Cheers

Rminsh commented 10 months ago

@gonzalezreal Thanks, vision's version check is removed , Please check again.