diff --git a/Package.resolved b/Package.resolved index 493091068..20ca07d37 100644 --- a/Package.resolved +++ b/Package.resolved @@ -25,7 +25,7 @@ "location" : "https://github.com/OpenSwiftUIProject/OpenCoreGraphics", "state" : { "branch" : "main", - "revision" : "d4fdffac749beec6108eaf345f69da5d222b6dd1" + "revision" : "1a1b9ad092ed373a3c94df7b589e3e099da93699" } }, { diff --git a/Tests/OpenSwiftUICoreTests/Layout/View/ViewTransformTests.swift b/Tests/OpenSwiftUICoreTests/Layout/View/ViewTransformTests.swift index ad5219f06..24faf4087 100644 --- a/Tests/OpenSwiftUICoreTests/Layout/View/ViewTransformTests.swift +++ b/Tests/OpenSwiftUICoreTests/Layout/View/ViewTransformTests.swift @@ -3,6 +3,7 @@ // OpenSwiftUICoreTests import Foundation +import OpenCoreGraphicsShims @_spi(ForOpenSwiftUIOnly) import OpenSwiftUICore import Testing @@ -48,7 +49,6 @@ struct ViewTransformTests { @Test func viewTransformDescription() { - #if canImport(CoreGraphics) var transform = ViewTransform() transform.appendTranslation(CGSize(width: 10, height: 10)) #expect(transform.description == #""" @@ -62,20 +62,5 @@ struct ViewTransformTests { #expect(transform.description == #""" ((10.0, 10.0), CoordinateSpaceElement(name: AnyHashable("a"))); SizedSpaceElement(name: AnyHashable("b"), size: (20.0, 20.0)) """#) - #else - var transform = ViewTransform() - transform.appendTranslation(CGSize(width: 10, height: 10)) - #expect(transform.description == #""" - CGSize(width: 10.0, height: 10.0) - """#) - transform.appendCoordinateSpace(name: "a") - #expect(transform.description == #""" - (CGSize(width: 10.0, height: 10.0), CoordinateSpaceElement(name: AnyHashable("a"))) - """#) - transform.appendSizedSpace(name: "b", size: .init(width: 20, height: 20)) - #expect(transform.description == #""" - (CGSize(width: 10.0, height: 10.0), CoordinateSpaceElement(name: AnyHashable("a"))); SizedSpaceElement(name: AnyHashable("b"), size: Foundation.CGSize(width: 20.0, height: 20.0)) - """#) - #endif } }