Skip to content

Commit 193f88e

Browse files
committed
fix watchOS
1 parent b41e2dc commit 193f88e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

SwiftDraw/Sources/CanvasUIView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// 3. This notice may not be removed or altered from any source distribution.
3030
//
3131

32-
#if canImport(UIKit)
32+
#if canImport(UIKit) && !os(watchOS)
3333
import UIKit
3434
import SwiftUI
3535

SwiftDraw/Sources/SVGView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,13 @@ public struct SVGView: View {
9898
)
9999
}
100100
} else {
101+
#if !os(watchOS)
101102
CanvasFallbackView(
102103
svg: svg,
103104
capInsets: capInsets,
104105
resizingMode: resizingMode
105106
)
107+
#endif
106108
}
107109
}
108110
}

0 commit comments

Comments
 (0)