diff --git a/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Alignment/AlignmentID.swift b/Sources/OpenSwiftUI/Layout/LayoutAdjustments/Alignment/AlignmentID.swift index 04b505d..83ada41 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 f00c4e6..c6ec76c 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 d4f89be..54156eb 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 1655765..20f89d5 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 5c4065c..51b4a41 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 ba1dde4..c83f894 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 537ba68..e3a736a 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 57501a4..d02f5a5 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 856e5b6..21c48da 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 8c2fe04..2c22934 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 c5f74f2..60553a7 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 5d2c0a1..efb106b 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 7e6b08f..0c450d3 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 d39e101..3094911 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 2ba8889..a830e06 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 9555d1a..8c03599 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 8687010..94d2529 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 72632a0..cda1f5d 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 ae65097..3b16f40 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"))