Wrap UIKit extension inside canImport

See fab982bf81
This commit is contained in:
Davide De Rosa 2022-10-08 09:20:04 +02:00
parent 1cf74d56d6
commit d40e40ae02
1 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,7 @@ extension DebugLog {
} }
} }
#if canImport(UIKit)
private extension UIUserInterfaceIdiom { private extension UIUserInterfaceIdiom {
var debugDescription: String { var debugDescription: String {
switch self { switch self {
@ -85,3 +86,4 @@ private extension UIUserInterfaceIdiom {
} }
} }
} }
#endif