diff --git a/Example/Example.xcodeproj/project.pbxproj b/Example/Example.xcodeproj/project.pbxproj index f5e659e97..789b084fd 100644 --- a/Example/Example.xcodeproj/project.pbxproj +++ b/Example/Example.xcodeproj/project.pbxproj @@ -26,6 +26,8 @@ 27AF22BB2E758F3700D534AB /* RenderBox.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 27E6C4D42D2842810010502F /* RenderBox.xcframework */; }; 27AF22BC2E758F3700D534AB /* RenderBox.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 27E6C4D42D2842810010502F /* RenderBox.xcframework */; }; 27AF22BD2E758F3700D534AB /* RenderBox.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 27E6C4D42D2842810010502F /* RenderBox.xcframework */; }; + 27BB94442F5D5FE800B2AA0A /* Equatable in Frameworks */ = {isa = PBXBuildFile; productRef = 27BB94432F5D5FE800B2AA0A /* Equatable */; }; + 27BB94462F5D5FEE00B2AA0A /* Equatable in Frameworks */ = {isa = PBXBuildFile; productRef = 27BB94452F5D5FEE00B2AA0A /* Equatable */; }; 27CD0B5F2AFC8DA7003665EB /* OpenSwiftUI in Frameworks */ = {isa = PBXBuildFile; productRef = 27CD0B5E2AFC8DA7003665EB /* OpenSwiftUI */; }; 27D49E0E2BA60AF600F6E2E2 /* OpenSwiftUI in Frameworks */ = {isa = PBXBuildFile; productRef = 27D49E0D2BA60AF600F6E2E2 /* OpenSwiftUI */; }; 27E28F0B2F5D5531007F8CF5 /* SFSymbols.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 27E28F0A2F5D5531007F8CF5 /* SFSymbols.xcframework */; }; @@ -91,13 +93,6 @@ }; target = 27D49DF72BA604FB00F6E2E2 /* HostingExample */; }; - 275C29E52F389AE8008676C3 /* PBXFileSystemSynchronizedBuildFileExceptionSet */ = { - isa = PBXFileSystemSynchronizedBuildFileExceptionSet; - membershipExceptions = ( - interpose.c, - ); - target = 275751E22DEE1441003E467C /* TestingHost */; - }; /* End PBXFileSystemSynchronizedBuildFileExceptionSet section */ /* Begin PBXFileSystemSynchronizedRootGroup section */ @@ -107,7 +102,7 @@ 275751F62DEE1456003E467C /* OpenSwiftUIUITests */ = {isa = PBXFileSystemSynchronizedRootGroup; explicitFileTypes = {}; explicitFolders = (); path = OpenSwiftUIUITests; sourceTree = ""; }; 279FEC572DF450D200320390 /* ReferenceImages */ = {isa = PBXFileSystemSynchronizedRootGroup; explicitFileTypes = {}; explicitFolders = (); path = ReferenceImages; sourceTree = ""; }; 27E6C4F62D2842D80010502F /* Configurations */ = {isa = PBXFileSystemSynchronizedRootGroup; explicitFileTypes = {}; explicitFolders = (); name = Configurations; path = ../Configurations; sourceTree = ""; }; - 27FFF0422E08850C0060A4DA /* SharedExample */ = {isa = PBXFileSystemSynchronizedRootGroup; exceptions = (275C29E52F389AE8008676C3 /* PBXFileSystemSynchronizedBuildFileExceptionSet */, ); explicitFileTypes = {}; explicitFolders = (); path = SharedExample; sourceTree = ""; }; + 27FFF0422E08850C0060A4DA /* Shared */ = {isa = PBXFileSystemSynchronizedRootGroup; explicitFileTypes = {}; explicitFolders = (); path = Shared; sourceTree = ""; }; /* End PBXFileSystemSynchronizedRootGroup section */ /* Begin PBXFrameworksBuildPhase section */ @@ -117,6 +112,7 @@ files = ( 279FED0D2DF4567B00320390 /* OpenSwiftUI in Frameworks */, 27AF22B82E758F2E00D534AB /* BacklightServices.xcframework in Frameworks */, + 27BB94442F5D5FE800B2AA0A /* Equatable in Frameworks */, 27E28F112F5D5547007F8CF5 /* SFSymbols.xcframework in Frameworks */, 27AF22B42E758F2900D534AB /* CoreUI.xcframework in Frameworks */, 27AF22BC2E758F3700D534AB /* RenderBox.xcframework in Frameworks */, @@ -130,6 +126,7 @@ files = ( 2792849F2DFF137400234D64 /* SnapshotTesting in Frameworks */, 27AF22B92E758F2E00D534AB /* BacklightServices.xcframework in Frameworks */, + 27BB94462F5D5FEE00B2AA0A /* Equatable in Frameworks */, 27E28F142F5D5556007F8CF5 /* SFSymbols.xcframework in Frameworks */, 27AF22B52E758F2900D534AB /* CoreUI.xcframework in Frameworks */, 27AF22BD2E758F3700D534AB /* RenderBox.xcframework in Frameworks */, @@ -177,7 +174,7 @@ 27E6C4D02D2842530010502F /* OpenRenderBox */, 271D81642BB1E8E300A6D543 /* OpenAttributeGraph */, 27CD0B612AFC8E0E003665EB /* OpenSwiftUI */, - 27FFF0422E08850C0060A4DA /* SharedExample */, + 27FFF0422E08850C0060A4DA /* Shared */, 275751AF2DEE136A003E467C /* Example */, 275751C12DEE136C003E467C /* HostingExample */, 275751E42DEE1441003E467C /* TestingHost */, @@ -229,10 +226,12 @@ ); fileSystemSynchronizedGroups = ( 275751E42DEE1441003E467C /* TestingHost */, + 27FFF0422E08850C0060A4DA /* Shared */, ); name = TestingHost; packageProductDependencies = ( 279FED0C2DF4567B00320390 /* OpenSwiftUI */, + 27BB94432F5D5FE800B2AA0A /* Equatable */, ); productName = TestingHost; productReference = 275751E32DEE1441003E467C /* TestingHost.app */; @@ -258,6 +257,7 @@ name = OpenSwiftUIUITests; packageProductDependencies = ( 2792849E2DFF137400234D64 /* SnapshotTesting */, + 27BB94452F5D5FEE00B2AA0A /* Equatable */, ); productName = OpenSwiftUIUITests; productReference = 279283B92DFF11CE00234D64 /* OpenSwiftUIUITests.xctest */; @@ -277,7 +277,7 @@ ); fileSystemSynchronizedGroups = ( 275751AF2DEE136A003E467C /* Example */, - 27FFF0422E08850C0060A4DA /* SharedExample */, + 27FFF0422E08850C0060A4DA /* Shared */, ); name = Example; packageProductDependencies = ( @@ -302,7 +302,7 @@ ); fileSystemSynchronizedGroups = ( 275751C12DEE136C003E467C /* HostingExample */, - 27FFF0422E08850C0060A4DA /* SharedExample */, + 27FFF0422E08850C0060A4DA /* Shared */, ); name = HostingExample; packageProductDependencies = ( @@ -506,7 +506,6 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = Example/Example.entitlements; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_ASSET_PATHS = "\"Example/Preview Content\""; DEVELOPMENT_TEAM = ""; ENABLE_HARDENED_RUNTIME = YES; ENABLE_PREVIEWS = YES; @@ -910,7 +909,6 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = Example/Example.entitlements; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_ASSET_PATHS = "\"Example/Preview Content\""; DEVELOPMENT_TEAM = ""; ENABLE_HARDENED_RUNTIME = YES; ENABLE_PREVIEWS = YES; @@ -1036,7 +1034,6 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = Example/Example.entitlements; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_ASSET_PATHS = "\"Example/Preview Content\""; DEVELOPMENT_TEAM = ""; ENABLE_HARDENED_RUNTIME = YES; ENABLE_PREVIEWS = YES; @@ -1244,7 +1241,6 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = Example/Example.entitlements; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_ASSET_PATHS = "\"Example/Preview Content\""; DEVELOPMENT_TEAM = ""; ENABLE_HARDENED_RUNTIME = YES; ENABLE_PREVIEWS = YES; @@ -1403,6 +1399,16 @@ isa = XCSwiftPackageProductDependency; productName = OpenSwiftUI; }; + 27BB94432F5D5FE800B2AA0A /* Equatable */ = { + isa = XCSwiftPackageProductDependency; + package = 278EF52B2E2272F2009C32EB /* XCRemoteSwiftPackageReference "equatable" */; + productName = Equatable; + }; + 27BB94452F5D5FEE00B2AA0A /* Equatable */ = { + isa = XCSwiftPackageProductDependency; + package = 278EF52B2E2272F2009C32EB /* XCRemoteSwiftPackageReference "equatable" */; + productName = Equatable; + }; 27CD0B5E2AFC8DA7003665EB /* OpenSwiftUI */ = { isa = XCSwiftPackageProductDependency; productName = OpenSwiftUI; diff --git a/Example/HostingExample/Assets.xcassets/AppIcon.appiconset/Contents.json b/Example/HostingExample/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 13613e3ee..000000000 --- a/Example/HostingExample/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "platform" : "ios", - "size" : "1024x1024" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Example/OpenSwiftUIUITests/Graphic/Color/NamedColorUITests.swift b/Example/OpenSwiftUIUITests/Graphic/Color/NamedColorUITests.swift index f0f701fcf..570c1fcd0 100644 --- a/Example/OpenSwiftUIUITests/Graphic/Color/NamedColorUITests.swift +++ b/Example/OpenSwiftUIUITests/Graphic/Color/NamedColorUITests.swift @@ -18,7 +18,6 @@ struct NamedColorUITests { #endif }) func namedColor() { - let bundle = Bundle.main openSwiftUIAssertSnapshot( of: Color("custom") ) diff --git a/Example/OpenSwiftUIUITests/View/DynamicViewContent/ForEachUITests.swift b/Example/OpenSwiftUIUITests/View/DynamicViewContent/ForEachUITests.swift index 60d096eb0..8f9227696 100644 --- a/Example/OpenSwiftUIUITests/View/DynamicViewContent/ForEachUITests.swift +++ b/Example/OpenSwiftUIUITests/View/DynamicViewContent/ForEachUITests.swift @@ -4,38 +4,19 @@ import Testing import SnapshotTesting +@testable import TestingHost @MainActor @Suite(.snapshots(record: .never, diffTool: diffTool)) struct ForEachUITests { @Test func offset() { - struct ContentView: View { - var body: some View { - VStack(spacing: 0) { - ForEach(0 ..< 6) { index in - Color.red.opacity(Double(index) / 6.0 ) - } - } - } - } - openSwiftUIAssertSnapshot(of: ContentView()) + openSwiftUIAssertSnapshot(of: ForEachOffsetExample()) } @Test func keyPath() { - struct ContentView: View { - let opacities = [0, 0.2, 0.4, 0.6, 0.8, 1.0] - - var body: some View { - VStack(spacing: 0) { - ForEach(opacities, id: \.self) { opacity in - Color.red.opacity(opacity) - } - } - } - } - openSwiftUIAssertSnapshot(of: ContentView()) + openSwiftUIAssertSnapshot(of: ForEachKeyPathExample()) } @Test diff --git a/Example/SharedExample/Animation/Animation/AnimationCompleteExample.swift b/Example/Shared/Animation/Animation/AnimationCompleteExample.swift similarity index 98% rename from Example/SharedExample/Animation/Animation/AnimationCompleteExample.swift rename to Example/Shared/Animation/Animation/AnimationCompleteExample.swift index 73dc5f2a4..61ac769e1 100644 --- a/Example/SharedExample/Animation/Animation/AnimationCompleteExample.swift +++ b/Example/Shared/Animation/Animation/AnimationCompleteExample.swift @@ -1,6 +1,6 @@ // // AnimationCompleteExample.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenSwiftUI diff --git a/Example/SharedExample/Animation/Animation/ColorAnimationExample.swift b/Example/Shared/Animation/Animation/ColorAnimationExample.swift similarity index 96% rename from Example/SharedExample/Animation/Animation/ColorAnimationExample.swift rename to Example/Shared/Animation/Animation/ColorAnimationExample.swift index cb23fe87a..fb489c7ce 100644 --- a/Example/SharedExample/Animation/Animation/ColorAnimationExample.swift +++ b/Example/Shared/Animation/Animation/ColorAnimationExample.swift @@ -1,6 +1,6 @@ // // ColorAnimationExample.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenSwiftUI diff --git a/Example/SharedExample/Animation/Animation/ElasticEaseInEaseOutAnimationExample.swift b/Example/Shared/Animation/Animation/ElasticEaseInEaseOutAnimationExample.swift similarity index 98% rename from Example/SharedExample/Animation/Animation/ElasticEaseInEaseOutAnimationExample.swift rename to Example/Shared/Animation/Animation/ElasticEaseInEaseOutAnimationExample.swift index 3934751ce..f3c9245f3 100644 --- a/Example/SharedExample/Animation/Animation/ElasticEaseInEaseOutAnimationExample.swift +++ b/Example/Shared/Animation/Animation/ElasticEaseInEaseOutAnimationExample.swift @@ -1,6 +1,6 @@ // // ElasticEaseInEaseOutAnimationExample.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenSwiftUI diff --git a/Example/SharedExample/Animation/Animation/RepeatAnimationExample.swift b/Example/Shared/Animation/Animation/RepeatAnimationExample.swift similarity index 98% rename from Example/SharedExample/Animation/Animation/RepeatAnimationExample.swift rename to Example/Shared/Animation/Animation/RepeatAnimationExample.swift index e8a7356a9..a630c425b 100644 --- a/Example/SharedExample/Animation/Animation/RepeatAnimationExample.swift +++ b/Example/Shared/Animation/Animation/RepeatAnimationExample.swift @@ -1,6 +1,6 @@ // // RepeatAnimationExample.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenSwiftUI diff --git a/Example/SharedExample/Animation/Animation/SpringAnimationExample.swift b/Example/Shared/Animation/Animation/SpringAnimationExample.swift similarity index 96% rename from Example/SharedExample/Animation/Animation/SpringAnimationExample.swift rename to Example/Shared/Animation/Animation/SpringAnimationExample.swift index 4d1bfd06e..59bc9cd47 100644 --- a/Example/SharedExample/Animation/Animation/SpringAnimationExample.swift +++ b/Example/Shared/Animation/Animation/SpringAnimationExample.swift @@ -1,6 +1,6 @@ // // SpringAnimationExample.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenSwiftUI diff --git a/Example/SharedExample/Animation/Timeline/AnimatedColorTimelineView.swift b/Example/Shared/Animation/Timeline/AnimatedColorTimelineView.swift similarity index 99% rename from Example/SharedExample/Animation/Timeline/AnimatedColorTimelineView.swift rename to Example/Shared/Animation/Timeline/AnimatedColorTimelineView.swift index a4e2793a6..eca89bad6 100644 --- a/Example/SharedExample/Animation/Timeline/AnimatedColorTimelineView.swift +++ b/Example/Shared/Animation/Timeline/AnimatedColorTimelineView.swift @@ -1,6 +1,6 @@ // // AnimatedColorTimelineView.swift -// SharedExample +// Shared // // Created by Kyle on 2025/9/15. // diff --git a/Example/SharedExample/Animation/Timeline/BreathingColorView.swift b/Example/Shared/Animation/Timeline/BreathingColorView.swift similarity index 98% rename from Example/SharedExample/Animation/Timeline/BreathingColorView.swift rename to Example/Shared/Animation/Timeline/BreathingColorView.swift index ec8032bc5..aa73fbf73 100644 --- a/Example/SharedExample/Animation/Timeline/BreathingColorView.swift +++ b/Example/Shared/Animation/Timeline/BreathingColorView.swift @@ -1,6 +1,6 @@ // // BreathingColorView.swift -// SharedExample +// Shared // // Created by Kyle on 2025/9/15. // diff --git a/Example/SharedExample/Animation/Timeline/ColorCodedClockView.swift b/Example/Shared/Animation/Timeline/ColorCodedClockView.swift similarity index 99% rename from Example/SharedExample/Animation/Timeline/ColorCodedClockView.swift rename to Example/Shared/Animation/Timeline/ColorCodedClockView.swift index b381b22bf..eb4526c2d 100644 --- a/Example/SharedExample/Animation/Timeline/ColorCodedClockView.swift +++ b/Example/Shared/Animation/Timeline/ColorCodedClockView.swift @@ -1,6 +1,6 @@ // // ColorCodedClockView.swift -// SharedExample +// Shared // // Created by Kyle on 2025/9/15. // diff --git a/Example/SharedExample/Animation/Transaction/TransactionExample.swift b/Example/Shared/Animation/Transaction/TransactionExample.swift similarity index 99% rename from Example/SharedExample/Animation/Transaction/TransactionExample.swift rename to Example/Shared/Animation/Transaction/TransactionExample.swift index f5df410fb..1c5cd9a12 100644 --- a/Example/SharedExample/Animation/Transaction/TransactionExample.swift +++ b/Example/Shared/Animation/Transaction/TransactionExample.swift @@ -1,6 +1,6 @@ // // TransactionExample.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenSwiftUI diff --git a/Example/HostingExample/Assets.xcassets/AccentColor.colorset/Contents.json b/Example/Shared/Assets/Assets.xcassets/AccentColor.colorset/Contents.json similarity index 100% rename from Example/HostingExample/Assets.xcassets/AccentColor.colorset/Contents.json rename to Example/Shared/Assets/Assets.xcassets/AccentColor.colorset/Contents.json diff --git a/Example/TestingHost/Assets.xcassets/AppIcon.appiconset/Contents.json b/Example/Shared/Assets/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from Example/TestingHost/Assets.xcassets/AppIcon.appiconset/Contents.json rename to Example/Shared/Assets/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/Example/HostingExample/Assets.xcassets/Contents.json b/Example/Shared/Assets/Assets.xcassets/Contents.json similarity index 100% rename from Example/HostingExample/Assets.xcassets/Contents.json rename to Example/Shared/Assets/Assets.xcassets/Contents.json diff --git a/Example/TestingHost/Assets.xcassets/custom.colorset/Contents.json b/Example/Shared/Assets/Assets.xcassets/custom.colorset/Contents.json similarity index 100% rename from Example/TestingHost/Assets.xcassets/custom.colorset/Contents.json rename to Example/Shared/Assets/Assets.xcassets/custom.colorset/Contents.json diff --git a/Example/TestingHost/Assets.xcassets/AccentColor.colorset/Contents.json b/Example/Shared/Assets/Assets.xcassets/logo.imageset/Contents.json similarity index 70% rename from Example/TestingHost/Assets.xcassets/AccentColor.colorset/Contents.json rename to Example/Shared/Assets/Assets.xcassets/logo.imageset/Contents.json index eb8789700..7c58c478f 100644 --- a/Example/TestingHost/Assets.xcassets/AccentColor.colorset/Contents.json +++ b/Example/Shared/Assets/Assets.xcassets/logo.imageset/Contents.json @@ -1,6 +1,7 @@ { - "colors" : [ + "images" : [ { + "filename" : "logo.png", "idiom" : "universal" } ], diff --git a/Example/TestingHost/images/logo.png b/Example/Shared/Assets/Assets.xcassets/logo.imageset/logo.png similarity index 100% rename from Example/TestingHost/images/logo.png rename to Example/Shared/Assets/Assets.xcassets/logo.imageset/logo.png diff --git a/Example/Shared/Assets/images/logo.png b/Example/Shared/Assets/images/logo.png new file mode 100644 index 000000000..597077362 Binary files /dev/null and b/Example/Shared/Assets/images/logo.png differ diff --git a/Example/SharedExample/ContentView.swift b/Example/Shared/ContentView.swift similarity index 92% rename from Example/SharedExample/ContentView.swift rename to Example/Shared/ContentView.swift index 3695c64f4..3d1cdbf5a 100644 --- a/Example/SharedExample/ContentView.swift +++ b/Example/Shared/ContentView.swift @@ -1,6 +1,6 @@ // // ContentView.swift -// SharedExample +// Shared // // Created by Kyle on 2023/11/9. // diff --git a/Example/SharedExample/Data/ObservationExample.swift b/Example/Shared/Data/ObservationExample.swift similarity index 97% rename from Example/SharedExample/Data/ObservationExample.swift rename to Example/Shared/Data/ObservationExample.swift index df372bc01..4856a99de 100644 --- a/Example/SharedExample/Data/ObservationExample.swift +++ b/Example/Shared/Data/ObservationExample.swift @@ -1,6 +1,6 @@ // // ObservationExample.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenObservation diff --git a/Example/SharedExample/Extension/Color+Platform.swift b/Example/Shared/Extension/Color+Platform.swift similarity index 96% rename from Example/SharedExample/Extension/Color+Platform.swift rename to Example/Shared/Extension/Color+Platform.swift index 59f0770f7..3f66b6945 100644 --- a/Example/SharedExample/Extension/Color+Platform.swift +++ b/Example/Shared/Extension/Color+Platform.swift @@ -1,6 +1,6 @@ // // Color+Platform.swift -// SharedExample +// Shared // // Created by Kyle on 2025/7/20. // diff --git a/Example/SharedExample/Integration/Representable/ColorRepresentableExample.swift b/Example/Shared/Integration/Representable/ColorRepresentableExample.swift similarity index 99% rename from Example/SharedExample/Integration/Representable/ColorRepresentableExample.swift rename to Example/Shared/Integration/Representable/ColorRepresentableExample.swift index 1d2024481..33db3ff70 100644 --- a/Example/SharedExample/Integration/Representable/ColorRepresentableExample.swift +++ b/Example/Shared/Integration/Representable/ColorRepresentableExample.swift @@ -1,6 +1,6 @@ // // ColorRepresentableExample.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenSwiftUI diff --git a/Example/SharedExample/Layout/CustomLayout/FlowLayout.swift b/Example/Shared/Layout/CustomLayout/FlowLayout.swift similarity index 99% rename from Example/SharedExample/Layout/CustomLayout/FlowLayout.swift rename to Example/Shared/Layout/CustomLayout/FlowLayout.swift index 92b3b2052..8118b6e13 100644 --- a/Example/SharedExample/Layout/CustomLayout/FlowLayout.swift +++ b/Example/Shared/Layout/CustomLayout/FlowLayout.swift @@ -1,6 +1,6 @@ // // FlowLayout.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenSwiftUI diff --git a/Example/SharedExample/Layout/CustomLayout/MyViewThatFitsByLayout.swift b/Example/Shared/Layout/CustomLayout/MyViewThatFitsByLayout.swift similarity index 99% rename from Example/SharedExample/Layout/CustomLayout/MyViewThatFitsByLayout.swift rename to Example/Shared/Layout/CustomLayout/MyViewThatFitsByLayout.swift index e56d440cc..3253da9fd 100644 --- a/Example/SharedExample/Layout/CustomLayout/MyViewThatFitsByLayout.swift +++ b/Example/Shared/Layout/CustomLayout/MyViewThatFitsByLayout.swift @@ -1,6 +1,6 @@ // // MyViewThatFitsByLayout.swift -// SharedExample +// Shared // // Modified from https://github.com/fatbobman/BlogCodes/blob/main/ViewThatFits/ViewThatFits/MyViewThatFitsByLayout.swift // Copyright © 2022 Yang Xu. All rights reserved. diff --git a/Example/SharedExample/Layout/CustomLayout/MyViewThatFitsExample.swift b/Example/Shared/Layout/CustomLayout/MyViewThatFitsExample.swift similarity index 97% rename from Example/SharedExample/Layout/CustomLayout/MyViewThatFitsExample.swift rename to Example/Shared/Layout/CustomLayout/MyViewThatFitsExample.swift index 7d81adf2f..990173030 100644 --- a/Example/SharedExample/Layout/CustomLayout/MyViewThatFitsExample.swift +++ b/Example/Shared/Layout/CustomLayout/MyViewThatFitsExample.swift @@ -1,6 +1,6 @@ // // MyViewThatFitsExample.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenSwiftUI diff --git a/Example/SharedExample/Layout/CustomLayout/MyZStackLayout.swift b/Example/Shared/Layout/CustomLayout/MyZStackLayout.swift similarity index 99% rename from Example/SharedExample/Layout/CustomLayout/MyZStackLayout.swift rename to Example/Shared/Layout/CustomLayout/MyZStackLayout.swift index 0f90470b6..87cf44869 100644 --- a/Example/SharedExample/Layout/CustomLayout/MyZStackLayout.swift +++ b/Example/Shared/Layout/CustomLayout/MyZStackLayout.swift @@ -1,6 +1,6 @@ // // MyZStackLayout.swift -// SharedExample +// Shared // // Modified from https://github.com/fatbobman/BlogCodes/blob/main/MyZStack/MyZStack/_MyZStackLayout.swift // Copyright © 2022 Yang Xu. All rights reserved. diff --git a/Example/SharedExample/Layout/Dynamic/DynamicLayoutViewExample.swift b/Example/Shared/Layout/Dynamic/DynamicLayoutViewExample.swift similarity index 95% rename from Example/SharedExample/Layout/Dynamic/DynamicLayoutViewExample.swift rename to Example/Shared/Layout/Dynamic/DynamicLayoutViewExample.swift index 4491f2fe4..e1cda942c 100644 --- a/Example/SharedExample/Layout/Dynamic/DynamicLayoutViewExample.swift +++ b/Example/Shared/Layout/Dynamic/DynamicLayoutViewExample.swift @@ -1,6 +1,6 @@ // // DynamicLayoutViewExample.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenSwiftUI diff --git a/Example/SharedExample/Layout/Geometry/GeometryReaderExample.swift b/Example/Shared/Layout/Geometry/GeometryReaderExample.swift similarity index 97% rename from Example/SharedExample/Layout/Geometry/GeometryReaderExample.swift rename to Example/Shared/Layout/Geometry/GeometryReaderExample.swift index e4c949291..bba3d90af 100644 --- a/Example/SharedExample/Layout/Geometry/GeometryReaderExample.swift +++ b/Example/Shared/Layout/Geometry/GeometryReaderExample.swift @@ -1,6 +1,6 @@ // // GeometryReaderExample.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenSwiftUI diff --git a/Example/SharedExample/Layout/Modifier/InsetViewModifierExample.swift b/Example/Shared/Layout/Modifier/InsetViewModifierExample.swift similarity index 97% rename from Example/SharedExample/Layout/Modifier/InsetViewModifierExample.swift rename to Example/Shared/Layout/Modifier/InsetViewModifierExample.swift index 802516827..7c09a59be 100644 --- a/Example/SharedExample/Layout/Modifier/InsetViewModifierExample.swift +++ b/Example/Shared/Layout/Modifier/InsetViewModifierExample.swift @@ -1,6 +1,6 @@ // // InsetViewModifierExample.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenSwiftUI diff --git a/Example/SharedExample/Render/GeometryEffect/GeometryEffectExample.swift b/Example/Shared/Render/GeometryEffect/GeometryEffectExample.swift similarity index 98% rename from Example/SharedExample/Render/GeometryEffect/GeometryEffectExample.swift rename to Example/Shared/Render/GeometryEffect/GeometryEffectExample.swift index 635be3a64..23dde6a51 100644 --- a/Example/SharedExample/Render/GeometryEffect/GeometryEffectExample.swift +++ b/Example/Shared/Render/GeometryEffect/GeometryEffectExample.swift @@ -1,6 +1,6 @@ // // GeometryEffectExample.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenSwiftUI diff --git a/Example/SharedExample/Shape/FlowerView.swift b/Example/Shared/Shape/FlowerView.swift similarity index 98% rename from Example/SharedExample/Shape/FlowerView.swift rename to Example/Shared/Shape/FlowerView.swift index 6af5a9c28..cd3b44a31 100644 --- a/Example/SharedExample/Shape/FlowerView.swift +++ b/Example/Shared/Shape/FlowerView.swift @@ -1,6 +1,6 @@ // // FlowerView.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenSwiftUI diff --git a/Example/SharedExample/View/ConditionalContentExample.swift b/Example/Shared/View/ConditionalContentExample.swift similarity index 98% rename from Example/SharedExample/View/ConditionalContentExample.swift rename to Example/Shared/View/ConditionalContentExample.swift index b310c1465..d436a50ad 100644 --- a/Example/SharedExample/View/ConditionalContentExample.swift +++ b/Example/Shared/View/ConditionalContentExample.swift @@ -1,6 +1,6 @@ // // ConditionalContentExample.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenSwiftUI diff --git a/Example/SharedExample/View/DynamicContentView/ForEachExample.swift b/Example/Shared/View/DynamicContentView/ForEachExample.swift similarity index 99% rename from Example/SharedExample/View/DynamicContentView/ForEachExample.swift rename to Example/Shared/View/DynamicContentView/ForEachExample.swift index d50e3a73d..89367d789 100644 --- a/Example/SharedExample/View/DynamicContentView/ForEachExample.swift +++ b/Example/Shared/View/DynamicContentView/ForEachExample.swift @@ -1,6 +1,6 @@ // // ForEachExample.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenObservation diff --git a/Example/SharedExample/View/EquatableDemoView.swift b/Example/Shared/View/EquatableDemoView.swift similarity index 95% rename from Example/SharedExample/View/EquatableDemoView.swift rename to Example/Shared/View/EquatableDemoView.swift index 1ebd52c7a..43b9838cb 100644 --- a/Example/SharedExample/View/EquatableDemoView.swift +++ b/Example/Shared/View/EquatableDemoView.swift @@ -1,6 +1,6 @@ // // EquatableView.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenSwiftUI diff --git a/Example/SharedExample/View/Image/AsyncImageExample.swift b/Example/Shared/View/Image/AsyncImageExample.swift similarity index 100% rename from Example/SharedExample/View/Image/AsyncImageExample.swift rename to Example/Shared/View/Image/AsyncImageExample.swift diff --git a/Example/SharedExample/View/NamespaceExample.swift b/Example/Shared/View/NamespaceExample.swift similarity index 97% rename from Example/SharedExample/View/NamespaceExample.swift rename to Example/Shared/View/NamespaceExample.swift index 9c442817f..32718fff1 100644 --- a/Example/SharedExample/View/NamespaceExample.swift +++ b/Example/Shared/View/NamespaceExample.swift @@ -1,6 +1,6 @@ // // NamespaceExample.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenSwiftUI diff --git a/Example/SharedExample/View/ToggleExample.swift b/Example/Shared/View/ToggleExample.swift similarity index 95% rename from Example/SharedExample/View/ToggleExample.swift rename to Example/Shared/View/ToggleExample.swift index e0e5a7636..9a139bb02 100644 --- a/Example/SharedExample/View/ToggleExample.swift +++ b/Example/Shared/View/ToggleExample.swift @@ -1,6 +1,6 @@ // // ToggleExample.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenSwiftUI diff --git a/Example/SharedExample/ViewModifier/AppearanceActionModifierExample.swift b/Example/Shared/ViewModifier/AppearanceActionModifierExample.swift similarity index 96% rename from Example/SharedExample/ViewModifier/AppearanceActionModifierExample.swift rename to Example/Shared/ViewModifier/AppearanceActionModifierExample.swift index 0eafc1785..649ee1400 100644 --- a/Example/SharedExample/ViewModifier/AppearanceActionModifierExample.swift +++ b/Example/Shared/ViewModifier/AppearanceActionModifierExample.swift @@ -1,6 +1,6 @@ // // AppearanceActionModifierExample.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenSwiftUI diff --git a/Example/SharedExample/ViewModifier/ValueActionModifierExample.swift b/Example/Shared/ViewModifier/ValueActionModifierExample.swift similarity index 96% rename from Example/SharedExample/ViewModifier/ValueActionModifierExample.swift rename to Example/Shared/ViewModifier/ValueActionModifierExample.swift index c19015faa..c403c1020 100644 --- a/Example/SharedExample/ViewModifier/ValueActionModifierExample.swift +++ b/Example/Shared/ViewModifier/ValueActionModifierExample.swift @@ -1,6 +1,6 @@ // // ValueActionModifier.swift -// SharedExample +// Shared #if OPENSWIFTUI import OpenSwiftUI diff --git a/Example/SharedExample/interpose.c b/Example/Shared/interpose.c similarity index 99% rename from Example/SharedExample/interpose.c rename to Example/Shared/interpose.c index 544f09ab8..85268f2a0 100644 --- a/Example/SharedExample/interpose.c +++ b/Example/Shared/interpose.c @@ -1,6 +1,6 @@ // // interpose.c -// SharedExample +// Shared // // Created by Kyle on 2025/10/3. // diff --git a/Example/TestingHost/Assets.xcassets/Contents.json b/Example/TestingHost/Assets.xcassets/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/Example/TestingHost/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -}