Skip to content

Commit a8bbc61

Browse files
authored
Merge pull request #77 from swhitty/sendable
SVG is Sendable
2 parents 7bf84f7 + d5c6412 commit a8bbc61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SwiftDraw/SVG.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import Foundation
3838
#if canImport(CoreGraphics)
3939
import CoreGraphics
4040

41-
public struct SVG: Hashable {
41+
public struct SVG: Hashable, Sendable {
4242
public private(set) var size: CGSize
4343

4444
// Array of commands that render the image
@@ -160,7 +160,7 @@ public enum Image { }
160160

161161
#else
162162

163-
public struct SVG {
163+
public struct SVG: Sendable {
164164
public let size: CGSize
165165

166166
init(dom: DOM.SVG, options: Options) {

0 commit comments

Comments
 (0)