diff --git a/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Alignment/AlignmentID.swift b/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Alignment/AlignmentID.swift index 04b505d0..83ada413 100644 --- a/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Alignment/AlignmentID.swift +++ b/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Alignment/AlignmentID.swift @@ -5,11 +5,7 @@ // Audited for RELEASE_2021 // Status: Complete -#if canImport(Darwin) -import CoreGraphics -#else import Foundation -#endif /// A type that you use to create custom alignment guides. /// diff --git a/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Alignment/HorizontalAlignment.swift b/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Alignment/HorizontalAlignment.swift index f00c4e6c..c6ec76c6 100644 --- a/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Alignment/HorizontalAlignment.swift +++ b/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Alignment/HorizontalAlignment.swift @@ -6,11 +6,7 @@ // Status: Complete // ID: E20796D15DD3D417699102559E024115 -#if canImport(Darwin) -import CoreGraphics -#else import Foundation -#endif /// An alignment position along the horizontal axis. /// diff --git a/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Alignment/VerticalAlignment.swift b/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Alignment/VerticalAlignment.swift index d4f89be4..54156eb8 100644 --- a/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Alignment/VerticalAlignment.swift +++ b/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Alignment/VerticalAlignment.swift @@ -6,11 +6,7 @@ // Status: Complete // ID: E20796D15DD3D417699102559E024115 -#if canImport(Darwin) -import CoreGraphics -#else import Foundation -#endif /// An alignment position along the vertical axis. /// diff --git a/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Alignment/ViewDimensions.swift b/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Alignment/ViewDimensions.swift index 1655765e..20f89d53 100644 --- a/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Alignment/ViewDimensions.swift +++ b/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Alignment/ViewDimensions.swift @@ -5,11 +5,7 @@ // Audited for RELEASE_2021 // Status: Complete -#if canImport(Darwin) -import CoreGraphics -#else import Foundation -#endif /// A view's size and alignment guides in its own coordinate space. /// diff --git a/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Edge/EdgeInsets.swift b/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Edge/EdgeInsets.swift index 5c4065c4..51b4a415 100644 --- a/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Edge/EdgeInsets.swift +++ b/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Edge/EdgeInsets.swift @@ -5,11 +5,7 @@ // Audited for RELEASE_2021 // Status: Complete -#if canImport(Darwin) -import CoreGraphics -#else import Foundation -#endif /// The inset distances for the sides of a rectangle. @frozen diff --git a/Sources/OpenSwiftUI/Layout/LayoutFundamentals/Stack/HStack.swift b/Sources/OpenSwiftUI/Layout/LayoutFundamentals/Stack/HStack.swift index ba1dde48..c83f8947 100644 --- a/Sources/OpenSwiftUI/Layout/LayoutFundamentals/Stack/HStack.swift +++ b/Sources/OpenSwiftUI/Layout/LayoutFundamentals/Stack/HStack.swift @@ -1,8 +1,4 @@ -#if canImport(Darwin) -import CoreGraphics -#else import Foundation -#endif @frozen public struct HStack: PrimitiveView { diff --git a/Sources/OpenSwiftUI/Layout/LayoutFundamentals/Stack/_HStackLayout.swift b/Sources/OpenSwiftUI/Layout/LayoutFundamentals/Stack/_HStackLayout.swift index 537ba687..e3a736a0 100644 --- a/Sources/OpenSwiftUI/Layout/LayoutFundamentals/Stack/_HStackLayout.swift +++ b/Sources/OpenSwiftUI/Layout/LayoutFundamentals/Stack/_HStackLayout.swift @@ -1,8 +1,4 @@ -#if canImport(Darwin) -import CoreGraphics -#else import Foundation -#endif @frozen public struct _HStackLayout { diff --git a/Sources/OpenSwiftUI/Layout/LayoutFundamentals/internal/LayoutComputer.swift b/Sources/OpenSwiftUI/Layout/LayoutFundamentals/internal/LayoutComputer.swift index 57501a46..d02f5a51 100644 --- a/Sources/OpenSwiftUI/Layout/LayoutFundamentals/internal/LayoutComputer.swift +++ b/Sources/OpenSwiftUI/Layout/LayoutFundamentals/internal/LayoutComputer.swift @@ -5,11 +5,7 @@ // Audited for RELEASE_2021 // Status: WIP -#if canImport(Darwin) -import CoreGraphics -#else import Foundation -#endif // TODO: struct LayoutComputer: Equatable { diff --git a/Sources/OpenSwiftUI/Layout/LayoutFundamentals/internal/Spacing.swift b/Sources/OpenSwiftUI/Layout/LayoutFundamentals/internal/Spacing.swift index 856e5b6e..21c48da8 100644 --- a/Sources/OpenSwiftUI/Layout/LayoutFundamentals/internal/Spacing.swift +++ b/Sources/OpenSwiftUI/Layout/LayoutFundamentals/internal/Spacing.swift @@ -6,11 +6,7 @@ // Status: TODO // ID: 127A76D3C8081D0134153BE9AE746714 -#if canImport(Darwin) -import CoreGraphics -#else import Foundation -#endif struct Spacing { // TODO diff --git a/Sources/OpenSwiftUI/Layout/LayoutFundamentals/internal/_ProposedSize.swift b/Sources/OpenSwiftUI/Layout/LayoutFundamentals/internal/_ProposedSize.swift index 8c2fe04e..2c229340 100644 --- a/Sources/OpenSwiftUI/Layout/LayoutFundamentals/internal/_ProposedSize.swift +++ b/Sources/OpenSwiftUI/Layout/LayoutFundamentals/internal/_ProposedSize.swift @@ -5,11 +5,7 @@ // Audited for RELEASE_2021 // Status: Complete -#if canImport(Darwin) -import CoreGraphics -#else import Foundation -#endif struct _ProposedSize: Hashable { var width: CGFloat? diff --git a/Sources/OpenSwiftUI/Test/_BenchmarkHost.swift b/Sources/OpenSwiftUI/Test/_BenchmarkHost.swift index c5f74f23..60553a7f 100644 --- a/Sources/OpenSwiftUI/Test/_BenchmarkHost.swift +++ b/Sources/OpenSwiftUI/Test/_BenchmarkHost.swift @@ -6,11 +6,7 @@ // Status: Complete // ID: 3E629D505F0A70F29ACFC010AA42C6E0 -#if canImport(Darwin) -import CoreGraphics -#else import Foundation -#endif #if canImport(QuartzCore) import QuartzCore diff --git a/Sources/OpenSwiftUI/View/Animation/TODO/Animatable.swift b/Sources/OpenSwiftUI/View/Animation/TODO/Animatable.swift index 5d2c0a1e..efb106b1 100644 --- a/Sources/OpenSwiftUI/View/Animation/TODO/Animatable.swift +++ b/Sources/OpenSwiftUI/View/Animation/TODO/Animatable.swift @@ -41,11 +41,7 @@ extension Animatable where AnimatableData == EmptyAnimatableData { } } -#if canImport(Darwin) -import CoreGraphics -#else import Foundation -#endif // MARK: - Animatable + CoreGraphics diff --git a/Sources/OpenSwiftUI/View/Animation/VectorArithmetic.swift b/Sources/OpenSwiftUI/View/Animation/VectorArithmetic.swift index 7e6b08f5..0c450d33 100644 --- a/Sources/OpenSwiftUI/View/Animation/VectorArithmetic.swift +++ b/Sources/OpenSwiftUI/View/Animation/VectorArithmetic.swift @@ -56,11 +56,7 @@ extension Double: VectorArithmetic { } } -#if canImport(Darwin) -import CoreGraphics -#else import Foundation -#endif extension CGFloat: VectorArithmetic { @_transparent diff --git a/Sources/OpenSwiftUI/View/Core/IdentifiedViewProxy.swift b/Sources/OpenSwiftUI/View/Core/IdentifiedViewProxy.swift index d39e1013..30949113 100644 --- a/Sources/OpenSwiftUI/View/Core/IdentifiedViewProxy.swift +++ b/Sources/OpenSwiftUI/View/Core/IdentifiedViewProxy.swift @@ -1,8 +1,4 @@ -#if canImport(Darwin) -import CoreGraphics -#else import Foundation -#endif public struct _IdentifiedViewProxy { var identifier: AnyHashable diff --git a/Sources/OpenSwiftUI/View/Core/ViewTransform.swift b/Sources/OpenSwiftUI/View/Core/ViewTransform.swift index 2ba88893..a830e063 100644 --- a/Sources/OpenSwiftUI/View/Core/ViewTransform.swift +++ b/Sources/OpenSwiftUI/View/Core/ViewTransform.swift @@ -1,10 +1,6 @@ // ID: CE19A3CEA6B9730579C42CE4C3071E74 -#if canImport(Darwin) -import CoreGraphics -#else import Foundation -#endif struct ViewTransform { private var chunks: ContiguousArray diff --git a/Sources/OpenSwiftUI/View/Text/Font/TODO/Font.swift b/Sources/OpenSwiftUI/View/Text/Font/TODO/Font.swift index 9555d1af..8c035992 100644 --- a/Sources/OpenSwiftUI/View/Text/Font/TODO/Font.swift +++ b/Sources/OpenSwiftUI/View/Text/Font/TODO/Font.swift @@ -1,8 +1,4 @@ -#if canImport(Darwin) -import CoreGraphics -#else import Foundation -#endif @frozen public struct Font: Hashable { diff --git a/Sources/OpenSwiftUI/View/Text/Text/TODO/Text.swift b/Sources/OpenSwiftUI/View/Text/Text/TODO/Text.swift index 86870100..94d25299 100644 --- a/Sources/OpenSwiftUI/View/Text/Text/TODO/Text.swift +++ b/Sources/OpenSwiftUI/View/Text/Text/TODO/Text.swift @@ -5,11 +5,7 @@ // Audited for RELEASE_2021 // Status: Empty -#if canImport(Darwin) -import CoreGraphics -#else import Foundation -#endif @frozen public struct Text: Equatable { diff --git a/Tests/OpenSwiftUITests/Layout/LayoutAdjustments/Alignment/AlignmentIDTests.swift b/Tests/OpenSwiftUITests/Layout/LayoutAdjustments/Alignment/AlignmentIDTests.swift index 72632a06..cda1f5dd 100644 --- a/Tests/OpenSwiftUITests/Layout/LayoutAdjustments/Alignment/AlignmentIDTests.swift +++ b/Tests/OpenSwiftUITests/Layout/LayoutAdjustments/Alignment/AlignmentIDTests.swift @@ -7,11 +7,7 @@ @testable import OpenSwiftUI import Testing -#if canImport(Darwin) -import CoreGraphics -#else import Foundation -#endif struct AlignmentIDTests { private struct TestAlignment: AlignmentID { diff --git a/Tests/OpenSwiftUITests/View/Core/Debug/ViewDebugTests.swift b/Tests/OpenSwiftUITests/View/Core/Debug/ViewDebugTests.swift index ae650973..3b16f401 100644 --- a/Tests/OpenSwiftUITests/View/Core/Debug/ViewDebugTests.swift +++ b/Tests/OpenSwiftUITests/View/Core/Debug/ViewDebugTests.swift @@ -7,11 +7,7 @@ @testable import OpenSwiftUI import Testing -#if canImport(Darwin) -import CoreGraphics -#else import Foundation -#endif struct ViewDebugTests { @Test(.disabled("Skip the test until we finish the implementation of _ViewDebug"))