We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5494c14 commit df10355Copy full SHA for df10355
Package.swift
@@ -6,7 +6,7 @@ import PackageDescription
6
let package = Package(
7
name: "CodeMirror",
8
platforms: [
9
- .iOS(.v14),
+ .iOS(.v17),
10
.macOS(.v14),
11
],
12
products: [
Sources/CodeMirror/CodeMirrorVM.swift
@@ -5,7 +5,13 @@
5
// Created by 王楚江 on 8/11/25.
//
-import AppKit
+#if canImport(AppKit)
+import AppKit // macOS
+#endif
+
+#if canImport(UIKit)
13
+import UIKit // iOS / iPadOS
14
15
16
@MainActor
17
public class CodeMirrorVM: ObservableObject {
0 commit comments