diff --git a/Example/Example.xcodeproj/project.pbxproj b/Example/Example.xcodeproj/project.pbxproj index 78949e339..f5e659e97 100644 --- a/Example/Example.xcodeproj/project.pbxproj +++ b/Example/Example.xcodeproj/project.pbxproj @@ -28,6 +28,10 @@ 27AF22BD2E758F3700D534AB /* RenderBox.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 27E6C4D42D2842810010502F /* RenderBox.xcframework */; }; 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 */; }; + 27E28F0E2F5D553F007F8CF5 /* SFSymbols.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 27E28F0A2F5D5531007F8CF5 /* SFSymbols.xcframework */; }; + 27E28F112F5D5547007F8CF5 /* SFSymbols.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 27E28F0A2F5D5531007F8CF5 /* SFSymbols.xcframework */; }; + 27E28F142F5D5556007F8CF5 /* SFSymbols.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 27E28F0A2F5D5531007F8CF5 /* SFSymbols.xcframework */; }; 27E6C4D32D2842740010502F /* AttributeGraph.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 27E6C4D12D2842740010502F /* AttributeGraph.xcframework */; }; /* End PBXBuildFile section */ @@ -58,6 +62,7 @@ 27CD0B492AFC8D37003665EB /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 27CD0B612AFC8E0E003665EB /* OpenSwiftUI */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = OpenSwiftUI; path = ..; sourceTree = ""; }; 27D49DF82BA604FB00F6E2E2 /* HostingExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HostingExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 27E28F0A2F5D5531007F8CF5 /* SFSymbols.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = SFSymbols.xcframework; path = ../../DarwinPrivateFrameworks/SF/2024/SFSymbols.xcframework; sourceTree = ""; }; 27E6C4D02D2842530010502F /* OpenRenderBox */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = OpenRenderBox; path = ../../OpenRenderBox; sourceTree = ""; }; 27E6C4D12D2842740010502F /* AttributeGraph.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = AttributeGraph.xcframework; path = ../../DarwinPrivateFrameworks/AG/2024/AttributeGraph.xcframework; sourceTree = ""; }; 27E6C4D42D2842810010502F /* RenderBox.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = RenderBox.xcframework; path = ../../DarwinPrivateFrameworks/RB/2024/RenderBox.xcframework; sourceTree = ""; }; @@ -112,6 +117,7 @@ files = ( 279FED0D2DF4567B00320390 /* OpenSwiftUI in Frameworks */, 27AF22B82E758F2E00D534AB /* BacklightServices.xcframework in Frameworks */, + 27E28F112F5D5547007F8CF5 /* SFSymbols.xcframework in Frameworks */, 27AF22B42E758F2900D534AB /* CoreUI.xcframework in Frameworks */, 27AF22BC2E758F3700D534AB /* RenderBox.xcframework in Frameworks */, 279FED052DF4566D00320390 /* AttributeGraph.xcframework in Frameworks */, @@ -124,6 +130,7 @@ files = ( 2792849F2DFF137400234D64 /* SnapshotTesting in Frameworks */, 27AF22B92E758F2E00D534AB /* BacklightServices.xcframework in Frameworks */, + 27E28F142F5D5556007F8CF5 /* SFSymbols.xcframework in Frameworks */, 27AF22B52E758F2900D534AB /* CoreUI.xcframework in Frameworks */, 27AF22BD2E758F3700D534AB /* RenderBox.xcframework in Frameworks */, 279284972DFF136E00234D64 /* AttributeGraph.xcframework in Frameworks */, @@ -136,6 +143,7 @@ files = ( 27AF22B22E758F2900D534AB /* CoreUI.xcframework in Frameworks */, 27AF22B62E758F2E00D534AB /* BacklightServices.xcframework in Frameworks */, + 27E28F0B2F5D5531007F8CF5 /* SFSymbols.xcframework in Frameworks */, 27CD0B5F2AFC8DA7003665EB /* OpenSwiftUI in Frameworks */, 278EF52F2E227304009C32EB /* Equatable in Frameworks */, 27E6C4D32D2842740010502F /* AttributeGraph.xcframework in Frameworks */, @@ -149,6 +157,7 @@ files = ( 27AF22B32E758F2900D534AB /* CoreUI.xcframework in Frameworks */, 27AF22B72E758F2E00D534AB /* BacklightServices.xcframework in Frameworks */, + 27E28F0E2F5D553F007F8CF5 /* SFSymbols.xcframework in Frameworks */, 27D49E0E2BA60AF600F6E2E2 /* OpenSwiftUI in Frameworks */, 278EF52D2E2272F2009C32EB /* Equatable in Frameworks */, 27186AE32D538A76009E05F9 /* AttributeGraph.xcframework in Frameworks */, @@ -193,6 +202,7 @@ 27D49E0C2BA60AF600F6E2E2 /* Frameworks */ = { isa = PBXGroup; children = ( + 27E28F0A2F5D5531007F8CF5 /* SFSymbols.xcframework */, 279080912E8E5E7B0082B5B6 /* Testing.framework */, 27AF22B12E758F0F00D534AB /* BacklightServices.xcframework */, 27EE91722DD0C753006C85FD /* CoreUI.xcframework */, diff --git a/Sources/OpenSwiftUICore/View/Image/NamedImage.swift b/Sources/OpenSwiftUICore/View/Image/NamedImage.swift index 6c75613f4..acdeba7f9 100644 --- a/Sources/OpenSwiftUICore/View/Image/NamedImage.swift +++ b/Sources/OpenSwiftUICore/View/Image/NamedImage.swift @@ -16,6 +16,9 @@ import CoreGraphics_Private package import CoreUI import GraphicsServices_Private #endif +#if OPENSWIFTUI_LINK_SFSYMBOLS +import SFSymbols +#endif // MARK: - NamedImage diff --git a/Tests/OpenSwiftUICoreTests/Util/SFSymbolsShimsTests.swift b/Tests/OpenSwiftUICoreTests/Util/SFSymbolsShimsTests.swift index ce362c80d..a120be413 100644 --- a/Tests/OpenSwiftUICoreTests/Util/SFSymbolsShimsTests.swift +++ b/Tests/OpenSwiftUICoreTests/Util/SFSymbolsShimsTests.swift @@ -5,6 +5,9 @@ #if canImport(Darwin) import OpenSwiftUICore import Testing +#if OPENSWIFTUI_LINK_SFSYMBOLS +import SFSymbols +#endif struct SFSymbolsShimsTests { @Test