diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 63cc42b..947c8c3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,7 +41,7 @@ jobs: - name: Test run: swift test --skip-build - xcode_16_2: + xcode_16_3: runs-on: macos-15 env: DEVELOPER_DIR: /Applications/Xcode_16.2.app/Contents/Developer @@ -55,32 +55,6 @@ jobs: - name: Test run: swift test --skip-build - xcode_15_4: - runs-on: macos-14 - env: - DEVELOPER_DIR: /Applications/Xcode_15.3.app/Contents/Developer - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Version - run: swift --version - - name: Build - run: swift build --build-tests - - name: Test - run: swift test --skip-build - - linux_5_10: - runs-on: ubuntu-latest - container: swift:5.10 - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Version - run: swift --version - - name: Build - run: swift build --build-tests - - name: Test - run: swift test --skip-build linux_6: runs-on: ubuntu-latest diff --git a/CommandLine/CommandLine.swift b/CommandLine/CommandLine.swift index a326afc..d87bf30 100644 --- a/CommandLine/CommandLine.swift +++ b/CommandLine/CommandLine.swift @@ -31,6 +31,7 @@ import Foundation import SwiftDraw +import SwiftDrawDOM extension SwiftDraw.CommandLine { diff --git a/DOM/Sources/TextOutputStream+StandardError.swift b/DOM/Sources/TextOutputStream+StandardError.swift index 2ba0d2a..5e03ebf 100644 --- a/DOM/Sources/TextOutputStream+StandardError.swift +++ b/DOM/Sources/TextOutputStream+StandardError.swift @@ -44,12 +44,8 @@ package extension TextOutputStream where Self == StandardErrorStream { package struct StandardErrorStream: TextOutputStream { -#if compiler(<6.0) - fileprivate static var shared = StandardErrorStream() -#else nonisolated(unsafe) fileprivate static var shared = StandardErrorStream() -#endif package func write(_ string: String) { if #available(macOS 10.15.4, iOS 13.4, tvOS 13.4, watchOS 6.2, *) { diff --git a/DOM/Tests/DOM+Extensions.swift b/DOM/Tests/DOM+Extensions.swift index ec4d8d5..250804b 100644 --- a/DOM/Tests/DOM+Extensions.swift +++ b/DOM/Tests/DOM+Extensions.swift @@ -84,7 +84,7 @@ extension DOM { // Equatable just for tests extension DOM.GraphicsElement: Swift.Equatable { - public static func ==(lhs: DOM.GraphicsElement, rhs: DOM.GraphicsElement) -> Bool { + static func ==(lhs: DOM.GraphicsElement, rhs: DOM.GraphicsElement) -> Bool { let toString: (Any) -> String = { var text = ""; dump($0, to: &text); return text } return toString(lhs) == toString(rhs) } diff --git a/DOM/Tests/Parser.XML.PathTests.swift b/DOM/Tests/Parser.XML.PathTests.swift index 0b82947..5d4aa43 100644 --- a/DOM/Tests/Parser.XML.PathTests.swift +++ b/DOM/Tests/Parser.XML.PathTests.swift @@ -272,7 +272,7 @@ private func arc(_ rx: Coordinate, _ ry: Coordinate, _ rotate: Coordinate, extension DOM.Path.Segment: Swift.Equatable { - public static func ==(lhs: DOM.Path.Segment, rhs: DOM.Path.Segment) -> Bool { + static func ==(lhs: DOM.Path.Segment, rhs: DOM.Path.Segment) -> Bool { let toString: (Any) -> String = { var text = ""; dump($0, to: &text); return text } return toString(lhs) == toString(rhs) } diff --git a/DOM/Tests/ValueParserTests.swift b/DOM/Tests/ValueParserTests.swift index 400da11..f0a6696 100644 --- a/DOM/Tests/ValueParserTests.swift +++ b/DOM/Tests/ValueParserTests.swift @@ -126,7 +126,7 @@ final class ValueParserTests: XCTestCase { } func testUrl() { -#if compiler(>=5.9) && canImport(Darwin) +#if canImport(Darwin) XCTAssertEqual(try parser.parseUrl("#testing🐟").fragmentID, "testing🐟") #else XCTAssertEqual(try parser.parseUrl("#testing").fragmentID, "testing") diff --git a/DOM/Tests/XML.Parser.ScannerTests.swift b/DOM/Tests/XML.Parser.ScannerTests.swift index 4c2eff4..ad06940 100644 --- a/DOM/Tests/XML.Parser.ScannerTests.swift +++ b/DOM/Tests/XML.Parser.ScannerTests.swift @@ -29,6 +29,7 @@ // 3. This notice may not be removed or altered from any source distribution. // +public import Foundation import XCTest @testable import SwiftDrawDOM @@ -234,9 +235,10 @@ private func AssertScanPercentageFloat(_ text: String, _ expected: Float?, file: XCTAssertEqual(try? scanner.scanPercentageFloat(), expected, file: file, line: line) } +extension CharacterSet: @retroactive ExpressibleByExtendedGraphemeClusterLiteral {} +extension CharacterSet: @retroactive ExpressibleByUnicodeScalarLiteral {} +extension CharacterSet: @retroactive ExpressibleByStringLiteral { -extension Foundation.CharacterSet: Swift.ExpressibleByStringLiteral { - static let hexadecimal: Foundation.CharacterSet = "0123456789ABCDEFabcdef" public init(stringLiteral value: String) { diff --git a/Package.swift b/Package.swift index 070b2b4..dea8269 100644 --- a/Package.swift +++ b/Package.swift @@ -58,6 +58,8 @@ extension Array where Element == SwiftSetting { static var upcomingFeatures: [SwiftSetting] { [ .enableUpcomingFeature("ExistentialAny"), + .enableUpcomingFeature("InternalImportsByDefault"), + .enableUpcomingFeature("MemberImportVisibility"), .swiftLanguageMode(.v6) ] } diff --git a/Package@swift-5.10.swift b/Package@swift-5.10.swift deleted file mode 100644 index ff7ab72..0000000 --- a/Package@swift-5.10.swift +++ /dev/null @@ -1,63 +0,0 @@ -// swift-tools-version:5.10 - -import PackageDescription - -let package = Package( - name: "SwiftDraw", - platforms: [ - .macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6), .visionOS(.v1) - ], - products: [ - .executable(name: "swiftdrawcli", targets: ["CommandLine"]), - .library( - name: "SwiftDraw", - targets: ["SwiftDraw"]), - ], - dependencies: [], - targets: [ - .target( - name: "SwiftDraw", - dependencies: ["SwiftDrawDOM"], - path: "SwiftDraw/Sources", - swiftSettings: .upcomingFeatures - ), - .target( - name: "SwiftDrawDOM", - dependencies: [], - path: "DOM/Sources" - ), - .executableTarget( - name: "CommandLine", - dependencies: ["SwiftDraw"], - path: "CommandLine", - swiftSettings: .upcomingFeatures - ), - .testTarget( - name: "SwiftDrawDOMTests", - dependencies: ["SwiftDrawDOM"], - path: "DOM/Tests", - resources: [ - .copy("Test.bundle") - ], - swiftSettings: .upcomingFeatures - ), - .testTarget( - name: "SwiftDrawTests", - dependencies: ["SwiftDraw"], - path: "SwiftDraw/Tests", - resources: [ - .copy("Test.bundle") - ], - swiftSettings: .upcomingFeatures - ) - ] -) - -extension Array where Element == SwiftSetting { - - static var upcomingFeatures: [SwiftSetting] { - [ - .enableUpcomingFeature("ExistentialAny") - ] - } -} diff --git a/SwiftDraw.podspec.json b/SwiftDraw.podspec.json index 0565f75..417633f 100644 --- a/SwiftDraw.podspec.json +++ b/SwiftDraw.podspec.json @@ -40,7 +40,7 @@ "exclude_files": "SwiftDraw/Sources/NSImage+Image.swift", "frameworks": ["UIKit", "Foundation"] }, - "swift_version": "5.10", + "swift_version": "6.0", "pod_target_xcconfig": { "OTHER_SWIFT_FLAGS": "-package-name SwiftDraw" }, diff --git a/SwiftDraw/Sources/CommandLine/CommandLine+Process.swift b/SwiftDraw/Sources/CommandLine/CommandLine+Process.swift index 1875ae4..2a470e2 100644 --- a/SwiftDraw/Sources/CommandLine/CommandLine+Process.swift +++ b/SwiftDraw/Sources/CommandLine/CommandLine+Process.swift @@ -29,7 +29,7 @@ // 3. This notice may not be removed or altered from any source distribution. // -import Foundation +public import Foundation #if canImport(CoreGraphics) import CoreGraphics #endif diff --git a/SwiftDraw/Sources/CommandLine/CommandLine.Configuration.swift b/SwiftDraw/Sources/CommandLine/CommandLine.Configuration.swift index 50b60ef..df27913 100644 --- a/SwiftDraw/Sources/CommandLine/CommandLine.Configuration.swift +++ b/SwiftDraw/Sources/CommandLine/CommandLine.Configuration.swift @@ -30,7 +30,7 @@ // import SwiftDrawDOM -import Foundation +public import Foundation extension CommandLine { diff --git a/SwiftDraw/Sources/LayerTree/LayerTree.Builder.Text.swift b/SwiftDraw/Sources/LayerTree/LayerTree.Builder.Text.swift index d12a839..95fac60 100644 --- a/SwiftDraw/Sources/LayerTree/LayerTree.Builder.Text.swift +++ b/SwiftDraw/Sources/LayerTree/LayerTree.Builder.Text.swift @@ -31,6 +31,7 @@ // Convert a DOM.SVG into a layer tree +import SwiftDrawDOM import Foundation #if canImport(CoreText) import CoreText diff --git a/SwiftDraw/Sources/LayerTree/LayerTree.CommandGenerator.swift b/SwiftDraw/Sources/LayerTree/LayerTree.CommandGenerator.swift index b553dd3..d0444f4 100644 --- a/SwiftDraw/Sources/LayerTree/LayerTree.CommandGenerator.swift +++ b/SwiftDraw/Sources/LayerTree/LayerTree.CommandGenerator.swift @@ -29,6 +29,7 @@ // 3. This notice may not be removed or altered from any source distribution. // import Foundation +import SwiftDrawDOM // Convert a LayerTree into RenderCommands diff --git a/SwiftDraw/Sources/NSImage+SVG.swift b/SwiftDraw/Sources/NSImage+SVG.swift index 1dcc93f..c6e3954 100644 --- a/SwiftDraw/Sources/NSImage+SVG.swift +++ b/SwiftDraw/Sources/NSImage+SVG.swift @@ -30,8 +30,7 @@ // #if canImport(AppKit) && !targetEnvironment(macCatalyst) -import AppKit -import CoreGraphics +public import AppKit public extension NSImage { diff --git a/SwiftDraw/Sources/Renderer/CGTextRenderer+Code.swift b/SwiftDraw/Sources/Renderer/CGTextRenderer+Code.swift index 5a30482..5911783 100644 --- a/SwiftDraw/Sources/Renderer/CGTextRenderer+Code.swift +++ b/SwiftDraw/Sources/Renderer/CGTextRenderer+Code.swift @@ -30,7 +30,7 @@ // import SwiftDrawDOM -import Foundation +public import Foundation public extension CGTextRenderer { diff --git a/SwiftDraw/Sources/Renderer/Renderer.CGText.swift b/SwiftDraw/Sources/Renderer/Renderer.CGText.swift index 9dc8ebc..cfbeaca 100644 --- a/SwiftDraw/Sources/Renderer/Renderer.CGText.swift +++ b/SwiftDraw/Sources/Renderer/Renderer.CGText.swift @@ -28,6 +28,7 @@ // // 3. This notice may not be removed or altered from any source distribution. // +import SwiftDrawDOM import Foundation struct CGTextTypes: RendererTypes { diff --git a/SwiftDraw/Sources/Renderer/Renderer.CoreGraphics.swift b/SwiftDraw/Sources/Renderer/Renderer.CoreGraphics.swift index 1760808..fb963c9 100644 --- a/SwiftDraw/Sources/Renderer/Renderer.CoreGraphics.swift +++ b/SwiftDraw/Sources/Renderer/Renderer.CoreGraphics.swift @@ -38,6 +38,8 @@ import UIKit import AppKit #endif +import SwiftDrawDOM + struct CGTypes: RendererTypes, Sendable { typealias Float = CGFloat typealias Point = CGPoint @@ -70,20 +72,6 @@ struct CGTransformingPattern: Hashable { let renderer = CGRenderer(context: ctx) renderer.perform(contents) } - -#if compiler(<6.0) - func hash(into hasher: inout Hasher) { - bounds.origin.x.hash(into: &hasher) - bounds.origin.y.hash(into: &hasher) - bounds.size.width.hash(into: &hasher) - bounds.size.height.hash(into: &hasher) - contents.hash(into: &hasher) - } - - static func == (lhs: CGTransformingPattern, rhs: CGTransformingPattern) -> Bool { - lhs.bounds == rhs.bounds && lhs.contents == rhs.contents - } -#endif } struct CGProvider: RendererTypeProvider { diff --git a/SwiftDraw/Sources/Renderer/Renderer.SFSymbol.swift b/SwiftDraw/Sources/Renderer/Renderer.SFSymbol.swift index f334832..a731408 100644 --- a/SwiftDraw/Sources/Renderer/Renderer.SFSymbol.swift +++ b/SwiftDraw/Sources/Renderer/Renderer.SFSymbol.swift @@ -30,7 +30,7 @@ // import SwiftDrawDOM -import Foundation +public import Foundation public struct SFSymbolRenderer { diff --git a/SwiftDraw/Sources/SVG/SVG+CoreGraphics.swift b/SwiftDraw/Sources/SVG/SVG+CoreGraphics.swift index 98194de..2ad87b0 100644 --- a/SwiftDraw/Sources/SVG/SVG+CoreGraphics.swift +++ b/SwiftDraw/Sources/SVG/SVG+CoreGraphics.swift @@ -30,8 +30,8 @@ // #if canImport(CoreGraphics) -import CoreGraphics -import Foundation +public import CoreGraphics +public import Foundation public extension CGContext { diff --git a/SwiftDraw/Sources/SVG/SVG+Deprecated.swift b/SwiftDraw/Sources/SVG/SVG+Deprecated.swift index bce5ba9..64c3681 100644 --- a/SwiftDraw/Sources/SVG/SVG+Deprecated.swift +++ b/SwiftDraw/Sources/SVG/SVG+Deprecated.swift @@ -30,8 +30,8 @@ // #if canImport(CoreGraphics) -import CoreGraphics -import Foundation +public import CoreGraphics +public import Foundation #if canImport(UIKit) import UIKit diff --git a/SwiftDraw/Sources/SVG/SVG+Hashable.swift b/SwiftDraw/Sources/SVG/SVG+Hashable.swift deleted file mode 100644 index e425e76..0000000 --- a/SwiftDraw/Sources/SVG/SVG+Hashable.swift +++ /dev/null @@ -1,149 +0,0 @@ -// -// SVG+Hashable.swift -// SwiftDraw -// -// Created by Simon Whitty on 23/2/25. -// Copyright 2025 Simon Whitty -// -// Distributed under the permissive zlib license -// Get the latest version from here: -// -// https://github.com/swhitty/SwiftDraw -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would be -// appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not be -// misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// - -#if canImport(CoreGraphics) && compiler(<6.0) -import CoreGraphics - -public extension SVG { - - func hash(into hasher: inout Hasher) { - size.width.hash(into: &hasher) - size.height.hash(into: &hasher) - commands.hash(into: &hasher) - } -} - -extension RendererCommand { - - func hash(into hasher: inout Hasher) { - switch self { - case .pushState: - "pushState".hash(into: &hasher) - case .popState: - "popState".hash(into: &hasher) - case let .concatenate(transform: transform): - "concatenate".hash(into: &hasher) - transform.a.hash(into: &hasher) - transform.b.hash(into: &hasher) - transform.c.hash(into: &hasher) - transform.d.hash(into: &hasher) - transform.ty.hash(into: &hasher) - transform.tx.hash(into: &hasher) - case let .translate(tx: tx, ty: ty): - "translate".hash(into: &hasher) - tx.hash(into: &hasher) - ty.hash(into: &hasher) - case let .rotate(angle: angle): - "rotate".hash(into: &hasher) - angle.hash(into: &hasher) - case let .scale(sx: sx, sy: sy): - "scale".hash(into: &hasher) - sx.hash(into: &hasher) - sy.hash(into: &hasher) - case let .setFill(color: color): - "setFill".hash(into: &hasher) - color.hash(into: &hasher) - case let .setFillPattern(pattern): - "setFillPattern".hash(into: &hasher) - pattern.hash(into: &hasher) - case let .setStroke(color: color): - "setStroke".hash(into: &hasher) - color.hash(into: &hasher) - case let .setLine(width: width): - "setLine".hash(into: &hasher) - width.hash(into: &hasher) - case let .setLineCap(cap): - "setLineCap".hash(into: &hasher) - cap.hash(into: &hasher) - case let .setLineJoin(join): - "setLineJoin".hash(into: &hasher) - join.hash(into: &hasher) - case let .setLineMiter(limit: limit): - "setLineMiter".hash(into: &hasher) - limit.hash(into: &hasher) - case let .setClip(path: path, rule: rule): - "setClip".hash(into: &hasher) - path.hash(into: &hasher) - rule.hash(into: &hasher) - case let .setClipMask(mask, frame: frame): - "setClip".hash(into: &hasher) - mask.hash(into: &hasher) - frame.origin.x.hash(into: &hasher) - frame.origin.y.hash(into: &hasher) - frame.size.width.hash(into: &hasher) - frame.size.height.hash(into: &hasher) - case let .setAlpha(alpha): - "setAlpha".hash(into: &hasher) - alpha.hash(into: &hasher) - case let .setBlend(mode: mode): - "setBlend".hash(into: &hasher) - mode.hash(into: &hasher) - case let .stroke(stroke): - "stroke".hash(into: &hasher) - stroke.hash(into: &hasher) - case let .clipStrokeOutline(outline): - "clipStrokeOutline".hash(into: &hasher) - outline.hash(into: &hasher) - case let .fill(fill, rule: rule): - "fill".hash(into: &hasher) - fill.hash(into: &hasher) - rule.hash(into: &hasher) - case let .draw(image: image, in: bounds): - "draw".hash(into: &hasher) - image.hash(into: &hasher) - bounds.origin.x.hash(into: &hasher) - bounds.origin.y.hash(into: &hasher) - bounds.size.width.hash(into: &hasher) - bounds.size.height.hash(into: &hasher) - case let .drawLinearGradient(gradient, from: from, to: to): - "drawLinearGradient".hash(into: &hasher) - gradient.hash(into: &hasher) - from.x.hash(into: &hasher) - from.y.hash(into: &hasher) - to.x.hash(into: &hasher) - to.y.hash(into: &hasher) - case let .drawRadialGradient(gradient, startCenter: startCenter, startRadius: startRadius, endCenter: endCenter, endRadius: endRadius): - "drawRadialGradient".hash(into: &hasher) - gradient.hash(into: &hasher) - startCenter.x.hash(into: &hasher) - startCenter.y.hash(into: &hasher) - startRadius.hash(into: &hasher) - endCenter.x.hash(into: &hasher) - endCenter.y.hash(into: &hasher) - endRadius.hash(into: &hasher) - case .pushTransparencyLayer: - "pushTransparencyLayer".hash(into: &hasher) - case .popTransparencyLayer: - "popTransparencyLayer".hash(into: &hasher) - } - } -} -#endif diff --git a/SwiftDraw/Sources/SVG/SVG+Insets.swift b/SwiftDraw/Sources/SVG/SVG+Insets.swift index 39f19c7..7833874 100644 --- a/SwiftDraw/Sources/SVG/SVG+Insets.swift +++ b/SwiftDraw/Sources/SVG/SVG+Insets.swift @@ -29,10 +29,10 @@ // 3. This notice may not be removed or altered from any source distribution. // -import Foundation - #if canImport(CoreGraphics) -import CoreGraphics +public import struct CoreGraphics.CGFloat +#else +public import typealias Foundation.CGFloat #endif public extension SVG { diff --git a/SwiftDraw/Sources/SVG/SVG.swift b/SwiftDraw/Sources/SVG/SVG.swift index 846dfc9..7ce8ef5 100644 --- a/SwiftDraw/Sources/SVG/SVG.swift +++ b/SwiftDraw/Sources/SVG/SVG.swift @@ -30,10 +30,10 @@ // import SwiftDrawDOM -import Foundation +public import Foundation #if compiler(<6.0) -#warning("SwiftDraw will soon remove support for Swift 5.10") +#warning("SwiftDraw will soon remove support for Swift 6.0") #endif #if canImport(CoreGraphics) diff --git a/SwiftDraw/Sources/SVG/SVGView.swift b/SwiftDraw/Sources/SVG/SVGView.swift index 4dc5712..30303ac 100644 --- a/SwiftDraw/Sources/SVG/SVGView.swift +++ b/SwiftDraw/Sources/SVG/SVGView.swift @@ -30,7 +30,7 @@ // #if canImport(SwiftUI) -import SwiftUI +public import SwiftUI @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *) public struct SVGView: View { diff --git a/SwiftDraw/Sources/UIImage+SVG.swift b/SwiftDraw/Sources/UIImage+SVG.swift index 9f43e26..3e8cbd6 100644 --- a/SwiftDraw/Sources/UIImage+SVG.swift +++ b/SwiftDraw/Sources/UIImage+SVG.swift @@ -146,11 +146,6 @@ extension SVG { private extension MainActor { -#if compiler(<6.0) - nonisolated static func syncIsolated(operation: () -> T) -> T { - operation() - } -#else static func syncIsolated(operation: @MainActor () -> T) -> T { if Thread.isMainThread { return MainActor.assumeIsolated { operation() } @@ -158,5 +153,4 @@ private extension MainActor { return DispatchQueue.main.sync { operation() } } } -#endif } diff --git a/SwiftDraw/Tests/LayerTree/LayerTree.LayerTests.swift b/SwiftDraw/Tests/LayerTree/LayerTree.LayerTests.swift index 316687c..ef365e5 100644 --- a/SwiftDraw/Tests/LayerTree/LayerTree.LayerTests.swift +++ b/SwiftDraw/Tests/LayerTree/LayerTree.LayerTests.swift @@ -31,6 +31,7 @@ import XCTest @testable import SwiftDraw +import SwiftDrawDOM final class LayerTreeLayerTests: XCTestCase { diff --git a/SwiftDraw/Tests/Renderer/Renderer.CoreGraphicsTypesTests.swift b/SwiftDraw/Tests/Renderer/Renderer.CoreGraphicsTypesTests.swift index 4e80310..606ec1c 100644 --- a/SwiftDraw/Tests/Renderer/Renderer.CoreGraphicsTypesTests.swift +++ b/SwiftDraw/Tests/Renderer/Renderer.CoreGraphicsTypesTests.swift @@ -30,6 +30,7 @@ import XCTest #if canImport(CoreGraphics) import CoreGraphics @testable import SwiftDraw +import SwiftDrawDOM final class RendererCoreGraphicsTypesTests: XCTestCase { diff --git a/SwiftDraw/Tests/Renderer/Renderer.LayerTreeProviderTests.swift b/SwiftDraw/Tests/Renderer/Renderer.LayerTreeProviderTests.swift index 03e8920..c01cb1c 100644 --- a/SwiftDraw/Tests/Renderer/Renderer.LayerTreeProviderTests.swift +++ b/SwiftDraw/Tests/Renderer/Renderer.LayerTreeProviderTests.swift @@ -28,6 +28,7 @@ import XCTest @testable import SwiftDraw +import SwiftDrawDOM final class RendererLayerTreeProviderTests: XCTestCase { diff --git a/SwiftDraw/Tests/Renderer/RendererTests.swift b/SwiftDraw/Tests/Renderer/RendererTests.swift index 126fa1c..8af406d 100644 --- a/SwiftDraw/Tests/Renderer/RendererTests.swift +++ b/SwiftDraw/Tests/Renderer/RendererTests.swift @@ -31,6 +31,7 @@ import XCTest @testable import SwiftDraw +import SwiftDrawDOM final class RendererTests: XCTestCase { diff --git a/SwiftDrawDOM.podspec.json b/SwiftDrawDOM.podspec.json index 666af0e..eb62624 100644 --- a/SwiftDrawDOM.podspec.json +++ b/SwiftDrawDOM.podspec.json @@ -20,7 +20,7 @@ "visionos": "1.0" }, "source_files": "DOM/Sources/*.swift", - "swift_version": "5.10", + "swift_version": "6.0", "pod_target_xcconfig": { "OTHER_SWIFT_FLAGS": "-package-name SwiftDraw" }