Skip to content

Commit 8843545

Browse files
authored
Merge pull request #9 from drspoton/patch-1
Update TypeAliases.swift
2 parents 43b0619 + d289fa9 commit 8843545

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)