Skip to content

Commit d289fa9

Browse files
authored
Update TypeAliases.swift
1 parent 43b0619 commit d289fa9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Sources/AttributedStringBuilder/TypeAliases.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@ import UIKit
88
typealias Color = UIColor
99
typealias Font = UIFont
1010

11-
#else
11+
#elseif canImport(AppKit)
1212

1313
import AppKit
1414
typealias Color = NSColor
1515
typealias Font = NSFont
1616

17+
#else
18+
19+
#error("wtf")
20+
1721
#endif

0 commit comments

Comments
 (0)