From 45ea3a6469b485fb366c701dab688420b6a174a1 Mon Sep 17 00:00:00 2001 From: Kyle Date: Sun, 29 Dec 2024 17:29:10 +0800 Subject: [PATCH] Update AnyAttribute --- Package.resolved | 2 +- Sources/OpenGraph/Attribute/Attribute/AnyAttribute.swift | 2 -- Sources/OpenGraph_SPI/Graph/OGGraph.h | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Package.resolved b/Package.resolved index 17454a0..0dd8151 100644 --- a/Package.resolved +++ b/Package.resolved @@ -7,7 +7,7 @@ "location" : "https://github.com/OpenSwiftUIProject/DarwinPrivateFrameworks.git", "state" : { "branch" : "main", - "revision" : "5627dacbbde44c8d3ea7b34f5d91b44839178e15" + "revision" : "d0ac1385d31428f84add080d9235ed08ccc12b1d" } }, { diff --git a/Sources/OpenGraph/Attribute/Attribute/AnyAttribute.swift b/Sources/OpenGraph/Attribute/Attribute/AnyAttribute.swift index e4a6dca..158a1ac 100644 --- a/Sources/OpenGraph/Attribute/Attribute/AnyAttribute.swift +++ b/Sources/OpenGraph/Attribute/Attribute/AnyAttribute.swift @@ -7,8 +7,6 @@ public import OpenGraph_SPI -public typealias AnyAttribute = OGAttribute - extension AnyAttribute { public typealias Flags = OGAttributeTypeFlags diff --git a/Sources/OpenGraph_SPI/Graph/OGGraph.h b/Sources/OpenGraph_SPI/Graph/OGGraph.h index 131f36e..e83d791 100644 --- a/Sources/OpenGraph_SPI/Graph/OGGraph.h +++ b/Sources/OpenGraph_SPI/Graph/OGGraph.h @@ -22,7 +22,7 @@ struct OGGraphStorage; struct OGGraphContextStorage; struct OGSubgraphStorage; -typedef uint32_t OGAttribute __attribute((swift_newtype(struct))); +typedef uint32_t OGAttribute OG_SWIFT_STRUCT OG_SWIFT_NAME(AnyAttribute); OG_ASSUME_NONNULL_BEGIN