diff --git a/PreviewsSupport/PreviewsSupport.xcframework/Info.plist b/PreviewsSupport/PreviewsSupport.xcframework/Info.plist index e7175a6..1cd03c7 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/Info.plist +++ b/PreviewsSupport/PreviewsSupport.xcframework/Info.plist @@ -8,24 +8,23 @@ BinaryPath PreviewsSupport.framework/PreviewsSupport LibraryIdentifier - ios-arm64_x86_64-simulator + watchos-arm64_arm64_32_armv7k LibraryPath PreviewsSupport.framework SupportedArchitectures arm64 - x86_64 + arm64_32 + armv7k SupportedPlatform - ios - SupportedPlatformVariant - simulator + watchos BinaryPath PreviewsSupport.framework/PreviewsSupport LibraryIdentifier - ios-arm64 + xros-arm64 LibraryPath PreviewsSupport.framework SupportedArchitectures @@ -33,13 +32,13 @@ arm64 SupportedPlatform - ios + xros BinaryPath PreviewsSupport.framework/PreviewsSupport LibraryIdentifier - watchos-arm64_x86_64-simulator + xros-arm64_x86_64-simulator LibraryPath PreviewsSupport.framework SupportedArchitectures @@ -48,7 +47,7 @@ x86_64 SupportedPlatform - watchos + xros SupportedPlatformVariant simulator @@ -56,23 +55,21 @@ BinaryPath PreviewsSupport.framework/PreviewsSupport LibraryIdentifier - watchos-arm64_arm64_32_armv7k + tvos-arm64 LibraryPath PreviewsSupport.framework SupportedArchitectures arm64 - arm64_32 - armv7k SupportedPlatform - watchos + tvos BinaryPath - PreviewsSupport.framework/Versions/A/PreviewsSupport + PreviewsSupport.framework/PreviewsSupport LibraryIdentifier - macos-arm64_x86_64 + ios-arm64_x86_64-simulator LibraryPath PreviewsSupport.framework SupportedArchitectures @@ -81,13 +78,15 @@ x86_64 SupportedPlatform - macos + ios + SupportedPlatformVariant + simulator BinaryPath PreviewsSupport.framework/PreviewsSupport LibraryIdentifier - xros-arm64_x86_64-simulator + watchos-arm64_x86_64-simulator LibraryPath PreviewsSupport.framework SupportedArchitectures @@ -96,29 +95,32 @@ x86_64 SupportedPlatform - xros + watchos SupportedPlatformVariant simulator BinaryPath - PreviewsSupport.framework/PreviewsSupport + PreviewsSupport.framework/Versions/A/PreviewsSupport LibraryIdentifier - tvos-arm64 + ios-arm64_x86_64-maccatalyst LibraryPath PreviewsSupport.framework SupportedArchitectures arm64 + x86_64 SupportedPlatform - tvos + ios + SupportedPlatformVariant + maccatalyst BinaryPath PreviewsSupport.framework/Versions/A/PreviewsSupport LibraryIdentifier - ios-arm64_x86_64-maccatalyst + macos-arm64_x86_64 LibraryPath PreviewsSupport.framework SupportedArchitectures @@ -127,40 +129,38 @@ x86_64 SupportedPlatform - ios - SupportedPlatformVariant - maccatalyst + macos BinaryPath PreviewsSupport.framework/PreviewsSupport LibraryIdentifier - xros-arm64 + tvos-arm64_x86_64-simulator LibraryPath PreviewsSupport.framework SupportedArchitectures arm64 + x86_64 SupportedPlatform - xros + tvos + SupportedPlatformVariant + simulator BinaryPath PreviewsSupport.framework/PreviewsSupport LibraryIdentifier - tvos-arm64_x86_64-simulator + ios-arm64 LibraryPath PreviewsSupport.framework SupportedArchitectures arm64 - x86_64 SupportedPlatform - tvos - SupportedPlatformVariant - simulator + ios CFBundlePackageType diff --git a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64/PreviewsSupport.framework/Info.plist b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64/PreviewsSupport.framework/Info.plist index b399369..d573cc0 100644 Binary files a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64/PreviewsSupport.framework/Info.plist and b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64/PreviewsSupport.framework/Info.plist differ diff --git a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios.abi.json b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios.abi.json index 812887c..2b80dca 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios.abi.json +++ b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios.abi.json @@ -319,6 +319,248 @@ } ] }, + { + "kind": "TypeDecl", + "name": "AnyViewModifier", + "printedName": "AnyViewModifier", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Constructor", + "usr": "s:15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "mangledName": "$s15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "body", + "printedName": "body(content:)", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + }, + { + "kind": "TypeNominal", + "name": "_ViewModifier_Content", + "printedName": "SwiftUI._ViewModifier_Content>", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + } + ], + "usr": "s:7SwiftUI21_ViewModifier_ContentV" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Struct", + "usr": "s:15PreviewsSupport15AnyViewModifierV", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "ViewModifier", + "printedName": "ViewModifier", + "children": [ + { + "kind": "TypeWitness", + "name": "Body", + "printedName": "Body", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + } + ] + } + ], + "usr": "s:7SwiftUI12ViewModifierP", + "mangledName": "$s7SwiftUI12ViewModifierP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "PreviewModifierSupport", + "printedName": "PreviewModifierSupport", + "children": [ + { + "kind": "Function", + "name": "toViewModifier", + "printedName": "toViewModifier(modifier:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:15PreviewsSupport015PreviewModifierB0O", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O", + "moduleName": "PreviewsSupport", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + } + ] + }, { "kind": "TypeDecl", "name": "UIViewPreviewSource", diff --git a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios.swiftinterface b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios.swiftinterface index 54f778d..4430bf4 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios.swiftinterface +++ b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios.swiftinterface @@ -10,7 +10,7 @@ import _Concurrency import _StringProcessing import _SwiftConcurrencyShims public protocol MakeViewProvider { - var makeView: @_Concurrency.MainActor () -> any SwiftUI.View { get } + var makeView: @_Concurrency.MainActor () -> any SwiftUICore.View { get } } public protocol MakeUIViewProvider { var makeView: @_Concurrency.MainActor () -> UIKit.UIView { get } @@ -18,3 +18,17 @@ public protocol MakeUIViewProvider { public protocol MakeViewControllerProvider { var makeViewController: @_Concurrency.MainActor () -> UIKit.UIViewController { get } } +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +@_Concurrency.MainActor @preconcurrency public struct AnyViewModifier : SwiftUICore.ViewModifier where M : SwiftUI.PreviewModifier, M.Context == () { + @_Concurrency.MainActor @preconcurrency public init(_ modifier: M) + @_Concurrency.MainActor @preconcurrency public func body(content: PreviewsSupport.AnyViewModifier.Content) -> some SwiftUICore.View + + @available(iOS 18.0, tvOS 18.0, watchOS 11.0, macOS 15.0, *) + public typealias Body = @_opaqueReturnTypeOf("$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", 0) __ +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +public enum PreviewModifierSupport { + public static func toViewModifier(modifier: A) -> PreviewsSupport.AnyViewModifier where A : SwiftUI.PreviewModifier, A.Context == () +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +extension PreviewsSupport.AnyViewModifier : Swift.Sendable {} diff --git a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64/PreviewsSupport.framework/PreviewsSupport b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64/PreviewsSupport.framework/PreviewsSupport index 43ceef0..afffd65 100755 Binary files a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64/PreviewsSupport.framework/PreviewsSupport and b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64/PreviewsSupport.framework/PreviewsSupport differ diff --git a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64/PreviewsSupport.framework/_CodeSignature/CodeResources b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64/PreviewsSupport.framework/_CodeSignature/CodeResources index cf3730c..32c15ce 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64/PreviewsSupport.framework/_CodeSignature/CodeResources +++ b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64/PreviewsSupport.framework/_CodeSignature/CodeResources @@ -14,15 +14,15 @@ Info.plist - jjO+sD4Xp8L6xA5djwWwvrx4Ktg= + gzsOyLiKTpmkkyLyB4DuZ8msWWM= Modules/PreviewsSupport.swiftmodule/arm64-apple-ios.abi.json - pvnbUYGZZJvuN0EX4dxSLv77GEM= + vkPYS1sILI7k9Mqc7uj/0meFgnw= Modules/PreviewsSupport.swiftmodule/arm64-apple-ios.private.swiftinterface - HiIcpVJz2VdE9KC2AALDimAt2O0= + 8aYNmKtQhVVNNW0P8eeqa+ZWnqU= Modules/PreviewsSupport.swiftmodule/arm64-apple-ios.swiftdoc @@ -30,11 +30,11 @@ Modules/PreviewsSupport.swiftmodule/arm64-apple-ios.swiftinterface - Tk7E7OwW/tqxkceQkJqC0POcbJc= + qlqWe6LfvrkAI0kkxV45ozc8kK0= Modules/PreviewsSupport.swiftmodule/arm64-apple-ios.swiftmodule - 4MvAJFF/VhOn97nSu9+FhkMRiXc= + 0AT2rXLunF/8EEnOERY7L8TxBt0= Modules/module.modulemap @@ -61,14 +61,14 @@ hash2 - GVJPxIbiEEUcNoUeRXhr5+TRSQImqphXoK+e6czzJiY= + eytM0xtqfTDY0Mkz/aoZAUbWAhGugCXH/QbwLztjpFU= Modules/PreviewsSupport.swiftmodule/arm64-apple-ios.private.swiftinterface hash2 - G/Ww3yU2hWOoK4OGje4U+1+lIk53yfufTFc9Wfdy908= + hwWGrBGmvVz8IV1BY4bKnWdho4EbH5cNgcpbE0A0Ldo= Modules/PreviewsSupport.swiftmodule/arm64-apple-ios.swiftdoc @@ -82,14 +82,14 @@ hash2 - 2NqyNJakTeB8FKbiJXNhi/p2RtVTOaExZuKbatRPeCM= + 6xsWo+4LW9ENmMGOjs8AbcoXpMSYh3hJD7lXIU2Ad9c= Modules/PreviewsSupport.swiftmodule/arm64-apple-ios.swiftmodule hash2 - hiH4Nsw+cvhT/ccp/R0vZBqXTuHOhG6O93KBYSa+wSc= + yfRSqlHGN0uKy27umF5dQAmdgP9UtFnboMx/BpMN9p4= Modules/module.modulemap diff --git a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-macabi.abi.json b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-macabi.abi.json index 812887c..2b80dca 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-macabi.abi.json +++ b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-macabi.abi.json @@ -319,6 +319,248 @@ } ] }, + { + "kind": "TypeDecl", + "name": "AnyViewModifier", + "printedName": "AnyViewModifier", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Constructor", + "usr": "s:15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "mangledName": "$s15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "body", + "printedName": "body(content:)", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + }, + { + "kind": "TypeNominal", + "name": "_ViewModifier_Content", + "printedName": "SwiftUI._ViewModifier_Content>", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + } + ], + "usr": "s:7SwiftUI21_ViewModifier_ContentV" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Struct", + "usr": "s:15PreviewsSupport15AnyViewModifierV", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "ViewModifier", + "printedName": "ViewModifier", + "children": [ + { + "kind": "TypeWitness", + "name": "Body", + "printedName": "Body", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + } + ] + } + ], + "usr": "s:7SwiftUI12ViewModifierP", + "mangledName": "$s7SwiftUI12ViewModifierP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "PreviewModifierSupport", + "printedName": "PreviewModifierSupport", + "children": [ + { + "kind": "Function", + "name": "toViewModifier", + "printedName": "toViewModifier(modifier:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:15PreviewsSupport015PreviewModifierB0O", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O", + "moduleName": "PreviewsSupport", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + } + ] + }, { "kind": "TypeDecl", "name": "UIViewPreviewSource", diff --git a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-macabi.swiftinterface b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-macabi.swiftinterface index 0a7bb49..0ba87a9 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-macabi.swiftinterface +++ b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-macabi.swiftinterface @@ -10,7 +10,7 @@ import _Concurrency import _StringProcessing import _SwiftConcurrencyShims public protocol MakeViewProvider { - var makeView: @_Concurrency.MainActor () -> any SwiftUI.View { get } + var makeView: @_Concurrency.MainActor () -> any SwiftUICore.View { get } } public protocol MakeUIViewProvider { var makeView: @_Concurrency.MainActor () -> UIKit.UIView { get } @@ -18,3 +18,17 @@ public protocol MakeUIViewProvider { public protocol MakeViewControllerProvider { var makeViewController: @_Concurrency.MainActor () -> UIKit.UIViewController { get } } +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +@_Concurrency.MainActor @preconcurrency public struct AnyViewModifier : SwiftUICore.ViewModifier where M : SwiftUI.PreviewModifier, M.Context == () { + @_Concurrency.MainActor @preconcurrency public init(_ modifier: M) + @_Concurrency.MainActor @preconcurrency public func body(content: PreviewsSupport.AnyViewModifier.Content) -> some SwiftUICore.View + + @available(iOS 18.0, tvOS 18.0, watchOS 11.0, macOS 15.0, *) + public typealias Body = @_opaqueReturnTypeOf("$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", 0) __ +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +public enum PreviewModifierSupport { + public static func toViewModifier(modifier: A) -> PreviewsSupport.AnyViewModifier where A : SwiftUI.PreviewModifier, A.Context == () +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +extension PreviewsSupport.AnyViewModifier : Swift.Sendable {} diff --git a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-macabi.abi.json b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-macabi.abi.json index 812887c..2b80dca 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-macabi.abi.json +++ b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-macabi.abi.json @@ -319,6 +319,248 @@ } ] }, + { + "kind": "TypeDecl", + "name": "AnyViewModifier", + "printedName": "AnyViewModifier", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Constructor", + "usr": "s:15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "mangledName": "$s15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "body", + "printedName": "body(content:)", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + }, + { + "kind": "TypeNominal", + "name": "_ViewModifier_Content", + "printedName": "SwiftUI._ViewModifier_Content>", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + } + ], + "usr": "s:7SwiftUI21_ViewModifier_ContentV" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Struct", + "usr": "s:15PreviewsSupport15AnyViewModifierV", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "ViewModifier", + "printedName": "ViewModifier", + "children": [ + { + "kind": "TypeWitness", + "name": "Body", + "printedName": "Body", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + } + ] + } + ], + "usr": "s:7SwiftUI12ViewModifierP", + "mangledName": "$s7SwiftUI12ViewModifierP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "PreviewModifierSupport", + "printedName": "PreviewModifierSupport", + "children": [ + { + "kind": "Function", + "name": "toViewModifier", + "printedName": "toViewModifier(modifier:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:15PreviewsSupport015PreviewModifierB0O", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O", + "moduleName": "PreviewsSupport", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + } + ] + }, { "kind": "TypeDecl", "name": "UIViewPreviewSource", diff --git a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-macabi.swiftinterface b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-macabi.swiftinterface index 90a96f1..241e698 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-macabi.swiftinterface +++ b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-macabi.swiftinterface @@ -10,7 +10,7 @@ import _Concurrency import _StringProcessing import _SwiftConcurrencyShims public protocol MakeViewProvider { - var makeView: @_Concurrency.MainActor () -> any SwiftUI.View { get } + var makeView: @_Concurrency.MainActor () -> any SwiftUICore.View { get } } public protocol MakeUIViewProvider { var makeView: @_Concurrency.MainActor () -> UIKit.UIView { get } @@ -18,3 +18,17 @@ public protocol MakeUIViewProvider { public protocol MakeViewControllerProvider { var makeViewController: @_Concurrency.MainActor () -> UIKit.UIViewController { get } } +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +@_Concurrency.MainActor @preconcurrency public struct AnyViewModifier : SwiftUICore.ViewModifier where M : SwiftUI.PreviewModifier, M.Context == () { + @_Concurrency.MainActor @preconcurrency public init(_ modifier: M) + @_Concurrency.MainActor @preconcurrency public func body(content: PreviewsSupport.AnyViewModifier.Content) -> some SwiftUICore.View + + @available(iOS 18.0, tvOS 18.0, watchOS 11.0, macOS 15.0, *) + public typealias Body = @_opaqueReturnTypeOf("$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", 0) __ +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +public enum PreviewModifierSupport { + public static func toViewModifier(modifier: A) -> PreviewsSupport.AnyViewModifier where A : SwiftUI.PreviewModifier, A.Context == () +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +extension PreviewsSupport.AnyViewModifier : Swift.Sendable {} diff --git a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/PreviewsSupport b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/PreviewsSupport index 083268a..b0e32d9 100755 Binary files a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/PreviewsSupport and b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/PreviewsSupport differ diff --git a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/Resources/Info.plist b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/Resources/Info.plist index 3d4ca1c..5734f99 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/Resources/Info.plist +++ b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/Resources/Info.plist @@ -3,7 +3,7 @@ BuildMachineOSBuild - 23G93 + 24A335 CFBundleDevelopmentRegion en CFBundleExecutable @@ -27,19 +27,19 @@ DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild - 24A5324a + 24A330 DTPlatformName macosx DTPlatformVersion 15.0 DTSDKBuild - 24A5324a + 24A330 DTSDKName macosx15.0 DTXcode 1600 DTXcodeBuild - 16A5230g + 16A242 LSMinimumSystemVersion 12.0 UIDeviceFamily diff --git a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/_CodeSignature/CodeResources b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/_CodeSignature/CodeResources index 728a76e..a6a6ed9 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/_CodeSignature/CodeResources +++ b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-maccatalyst/PreviewsSupport.framework/Versions/A/_CodeSignature/CodeResources @@ -6,7 +6,7 @@ Resources/Info.plist - N1KmqfYR65NxtMuUPCJTey+HQXo= + lDrxQk84/2+xJLKcQEYxQ6QfPx4= files2 @@ -29,14 +29,14 @@ hash2 - GVJPxIbiEEUcNoUeRXhr5+TRSQImqphXoK+e6czzJiY= + eytM0xtqfTDY0Mkz/aoZAUbWAhGugCXH/QbwLztjpFU= Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-macabi.private.swiftinterface hash2 - FasFzIB2qTJISPphoAxUv6rB/Ak4U6zFShzjZ88zGwo= + y+Um2n+AaFOKp2fnf1FeFr/PVxGTlaQA0bpR1pzHauY= Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-macabi.swiftdoc @@ -50,28 +50,28 @@ hash2 - gUllFX9t0KDmRoemll70PimLZ50/10SZ8Ngb1nN6RSQ= + jXoVR+19evMbeAPtYLDcZEKVAENdzvV0XLRAojWYR5E= Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-macabi.swiftmodule hash2 - cT9x2vY87SOU35AHWM74lhfF02b3OZYfZm7CFzexPrk= + o/Aeceo+6hKggUXXqLkAKQktev1T4Q4cmKRQkUL4sYI= Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-macabi.abi.json hash2 - GVJPxIbiEEUcNoUeRXhr5+TRSQImqphXoK+e6czzJiY= + eytM0xtqfTDY0Mkz/aoZAUbWAhGugCXH/QbwLztjpFU= Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-macabi.private.swiftinterface hash2 - jkE4nC1LN8SNY7SDJy6kDiF7PGRKKnJ2u4dL5LmZiEk= + GwobEHABtj6j8lR3Bct16K7L/Uwh2kObp6I3UHrgR4g= Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-macabi.swiftdoc @@ -85,14 +85,14 @@ hash2 - Va80QtUZs6PNX/gT92MSZoLR7KdtcOO11aoCnCwIB+U= + TAobFv0bbvy3cRGiK2QQqISueYpdkdD2qlbuiyuYlXM= Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-macabi.swiftmodule hash2 - SaDZJq9dgS7xaAQxnotTJbUDiDoxZ3GxYfoH2JG1zwE= + rfRujhGLcIPfD+LIQYRRE5faHYoEZWtI41rPkBZcNlE= Modules/module.modulemap @@ -106,7 +106,7 @@ hash2 - kEyZRVAHD+69aefYezzXZzW3qWbT3OwLWTK5r90jLt8= + yoZ/UZo8PzVyXenDxd/iERIy8HzrQSVj9ym2GMPC7xY= diff --git a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/Info.plist b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/Info.plist index c5bc84f..fcc1de2 100644 Binary files a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/Info.plist and b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/Info.plist differ diff --git a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-simulator.abi.json b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-simulator.abi.json index 812887c..2b80dca 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-simulator.abi.json +++ b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-simulator.abi.json @@ -319,6 +319,248 @@ } ] }, + { + "kind": "TypeDecl", + "name": "AnyViewModifier", + "printedName": "AnyViewModifier", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Constructor", + "usr": "s:15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "mangledName": "$s15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "body", + "printedName": "body(content:)", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + }, + { + "kind": "TypeNominal", + "name": "_ViewModifier_Content", + "printedName": "SwiftUI._ViewModifier_Content>", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + } + ], + "usr": "s:7SwiftUI21_ViewModifier_ContentV" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Struct", + "usr": "s:15PreviewsSupport15AnyViewModifierV", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "ViewModifier", + "printedName": "ViewModifier", + "children": [ + { + "kind": "TypeWitness", + "name": "Body", + "printedName": "Body", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + } + ] + } + ], + "usr": "s:7SwiftUI12ViewModifierP", + "mangledName": "$s7SwiftUI12ViewModifierP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "PreviewModifierSupport", + "printedName": "PreviewModifierSupport", + "children": [ + { + "kind": "Function", + "name": "toViewModifier", + "printedName": "toViewModifier(modifier:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:15PreviewsSupport015PreviewModifierB0O", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O", + "moduleName": "PreviewsSupport", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + } + ] + }, { "kind": "TypeDecl", "name": "UIViewPreviewSource", diff --git a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-simulator.swiftinterface index c176331..9b9e4df 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-simulator.swiftinterface +++ b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-simulator.swiftinterface @@ -10,7 +10,7 @@ import _Concurrency import _StringProcessing import _SwiftConcurrencyShims public protocol MakeViewProvider { - var makeView: @_Concurrency.MainActor () -> any SwiftUI.View { get } + var makeView: @_Concurrency.MainActor () -> any SwiftUICore.View { get } } public protocol MakeUIViewProvider { var makeView: @_Concurrency.MainActor () -> UIKit.UIView { get } @@ -18,3 +18,17 @@ public protocol MakeUIViewProvider { public protocol MakeViewControllerProvider { var makeViewController: @_Concurrency.MainActor () -> UIKit.UIViewController { get } } +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +@_Concurrency.MainActor @preconcurrency public struct AnyViewModifier : SwiftUICore.ViewModifier where M : SwiftUI.PreviewModifier, M.Context == () { + @_Concurrency.MainActor @preconcurrency public init(_ modifier: M) + @_Concurrency.MainActor @preconcurrency public func body(content: PreviewsSupport.AnyViewModifier.Content) -> some SwiftUICore.View + + @available(iOS 18.0, tvOS 18.0, watchOS 11.0, macOS 15.0, *) + public typealias Body = @_opaqueReturnTypeOf("$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", 0) __ +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +public enum PreviewModifierSupport { + public static func toViewModifier(modifier: A) -> PreviewsSupport.AnyViewModifier where A : SwiftUI.PreviewModifier, A.Context == () +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +extension PreviewsSupport.AnyViewModifier : Swift.Sendable {} diff --git a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-simulator.abi.json b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-simulator.abi.json index 812887c..2b80dca 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-simulator.abi.json +++ b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-simulator.abi.json @@ -319,6 +319,248 @@ } ] }, + { + "kind": "TypeDecl", + "name": "AnyViewModifier", + "printedName": "AnyViewModifier", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Constructor", + "usr": "s:15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "mangledName": "$s15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "body", + "printedName": "body(content:)", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + }, + { + "kind": "TypeNominal", + "name": "_ViewModifier_Content", + "printedName": "SwiftUI._ViewModifier_Content>", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + } + ], + "usr": "s:7SwiftUI21_ViewModifier_ContentV" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Struct", + "usr": "s:15PreviewsSupport15AnyViewModifierV", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "ViewModifier", + "printedName": "ViewModifier", + "children": [ + { + "kind": "TypeWitness", + "name": "Body", + "printedName": "Body", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + } + ] + } + ], + "usr": "s:7SwiftUI12ViewModifierP", + "mangledName": "$s7SwiftUI12ViewModifierP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "PreviewModifierSupport", + "printedName": "PreviewModifierSupport", + "children": [ + { + "kind": "Function", + "name": "toViewModifier", + "printedName": "toViewModifier(modifier:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:15PreviewsSupport015PreviewModifierB0O", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O", + "moduleName": "PreviewsSupport", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + } + ] + }, { "kind": "TypeDecl", "name": "UIViewPreviewSource", diff --git a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftinterface index b455d04..67976b5 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +++ b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -10,7 +10,7 @@ import _Concurrency import _StringProcessing import _SwiftConcurrencyShims public protocol MakeViewProvider { - var makeView: @_Concurrency.MainActor () -> any SwiftUI.View { get } + var makeView: @_Concurrency.MainActor () -> any SwiftUICore.View { get } } public protocol MakeUIViewProvider { var makeView: @_Concurrency.MainActor () -> UIKit.UIView { get } @@ -18,3 +18,17 @@ public protocol MakeUIViewProvider { public protocol MakeViewControllerProvider { var makeViewController: @_Concurrency.MainActor () -> UIKit.UIViewController { get } } +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +@_Concurrency.MainActor @preconcurrency public struct AnyViewModifier : SwiftUICore.ViewModifier where M : SwiftUI.PreviewModifier, M.Context == () { + @_Concurrency.MainActor @preconcurrency public init(_ modifier: M) + @_Concurrency.MainActor @preconcurrency public func body(content: PreviewsSupport.AnyViewModifier.Content) -> some SwiftUICore.View + + @available(iOS 18.0, tvOS 18.0, watchOS 11.0, macOS 15.0, *) + public typealias Body = @_opaqueReturnTypeOf("$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", 0) __ +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +public enum PreviewModifierSupport { + public static func toViewModifier(modifier: A) -> PreviewsSupport.AnyViewModifier where A : SwiftUI.PreviewModifier, A.Context == () +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +extension PreviewsSupport.AnyViewModifier : Swift.Sendable {} diff --git a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/PreviewsSupport b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/PreviewsSupport index 2e87fd2..326bb4e 100755 Binary files a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/PreviewsSupport and b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/PreviewsSupport differ diff --git a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/_CodeSignature/CodeResources b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/_CodeSignature/CodeResources index 8f7c677..b0b4e08 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/_CodeSignature/CodeResources +++ b/PreviewsSupport/PreviewsSupport.xcframework/ios-arm64_x86_64-simulator/PreviewsSupport.framework/_CodeSignature/CodeResources @@ -14,15 +14,15 @@ Info.plist - xD7NkkaD4xhJaTBB2hqEzeQm6Zc= + fjMwy8UJ5GjOfZF3dTDKI4wj5Yc= Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-simulator.abi.json - pvnbUYGZZJvuN0EX4dxSLv77GEM= + vkPYS1sILI7k9Mqc7uj/0meFgnw= Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface - Ib7SY5mkXu7Hj6PYdmlTKpyXZk4= + zDKulaL2khOqaFtCjDMxTxtIb+0= Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-simulator.swiftdoc @@ -30,19 +30,19 @@ Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-simulator.swiftinterface - VKHd91N5J9FJO1sIfHWwdP1UIxQ= + nqe0P1q4YhRbMB21Y1hWHL6Vhio= Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-simulator.swiftmodule - 5C1/8qpJuuix2q5Vaz69aFgcN3k= + P2NcW8JSWvS3Cv0YMN3Cat4W+Mg= Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-simulator.abi.json - pvnbUYGZZJvuN0EX4dxSLv77GEM= + vkPYS1sILI7k9Mqc7uj/0meFgnw= Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface - xqTTFYpZvLgbcTw2weD93lhPZDI= + x3sXWrtSssV0+bBOcI/F5HBkHpQ= Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftdoc @@ -50,11 +50,11 @@ Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftinterface - CBLPocEX0O3J3ezPpKThen2KsQQ= + nMKgXRLGaeh8Fl/jrHAblyAACFg= Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule - 1cVxqYHKLqJdCP064uVEHynQFek= + uk21DeOgKIGlIvrsYHj5dH+eldE= Modules/module.modulemap @@ -81,14 +81,14 @@ hash2 - GVJPxIbiEEUcNoUeRXhr5+TRSQImqphXoK+e6czzJiY= + eytM0xtqfTDY0Mkz/aoZAUbWAhGugCXH/QbwLztjpFU= Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface hash2 - leLAcFLvgH6CDsZbRoLKvoLwNRuBAmlMQZ9cMSNSEJg= + yskY1nGy4OkH4tl3Y4qX8OESA1ehG787TJpt67D5qds= Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-simulator.swiftdoc @@ -102,28 +102,28 @@ hash2 - 0Z5yl1nXs/k7doUE9YYwucahTSFiBqIiGWTzVfvRjwc= + poCTmv/3buYLvR50rXWLrTwrkYOjuKGqhHpaoY467+0= Modules/PreviewsSupport.swiftmodule/arm64-apple-ios-simulator.swiftmodule hash2 - njKPzNuQKHqocUhQAca1pI/Lk63FdLc/fO0/xxH++Cg= + TstuFVHhzcpT2AP7WMTFp/LfFJCEKm5wB7jgATxog9o= Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-simulator.abi.json hash2 - GVJPxIbiEEUcNoUeRXhr5+TRSQImqphXoK+e6czzJiY= + eytM0xtqfTDY0Mkz/aoZAUbWAhGugCXH/QbwLztjpFU= Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface hash2 - zKolJmsgqB00bED0gXnIvIwbrAonAPDO4puLJ/FQc+k= + ivPKou1MyRkgJALafJoCENK0VNJmkcmDHY4d6OEpo7o= Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftdoc @@ -137,14 +137,14 @@ hash2 - /T5K4kSSVyntJKty6fg0dc4NKwg0iFATMdHvoYKYk6U= + 3DCTvydHCES8YGICPvv04q2AhRHDeHTa4ncdwih1We0= Modules/PreviewsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule hash2 - C6ifpX5VmlZPQGasR8mbIyyNBFmWsWio44wZGk6qSwk= + kVTnRyDhrYG3tty1CjUjzljVAaFI2yWG3MFR1nkzPlc= Modules/module.modulemap diff --git a/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/arm64-apple-macos.abi.json b/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/arm64-apple-macos.abi.json index 1f096ec..5e0dd0b 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/arm64-apple-macos.abi.json +++ b/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/arm64-apple-macos.abi.json @@ -120,6 +120,248 @@ } ] }, + { + "kind": "TypeDecl", + "name": "AnyViewModifier", + "printedName": "AnyViewModifier", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Constructor", + "usr": "s:15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "mangledName": "$s15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "body", + "printedName": "body(content:)", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + }, + { + "kind": "TypeNominal", + "name": "_ViewModifier_Content", + "printedName": "SwiftUI._ViewModifier_Content>", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + } + ], + "usr": "s:7SwiftUI21_ViewModifier_ContentV" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Struct", + "usr": "s:15PreviewsSupport15AnyViewModifierV", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "ViewModifier", + "printedName": "ViewModifier", + "children": [ + { + "kind": "TypeWitness", + "name": "Body", + "printedName": "Body", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + } + ] + } + ], + "usr": "s:7SwiftUI12ViewModifierP", + "mangledName": "$s7SwiftUI12ViewModifierP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "PreviewModifierSupport", + "printedName": "PreviewModifierSupport", + "children": [ + { + "kind": "Function", + "name": "toViewModifier", + "printedName": "toViewModifier(modifier:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:15PreviewsSupport015PreviewModifierB0O", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O", + "moduleName": "PreviewsSupport", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + } + ] + }, { "kind": "TypeDecl", "name": "ViewPreviewSource", diff --git a/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/arm64-apple-macos.swiftinterface b/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/arm64-apple-macos.swiftinterface index cdc7314..6d7384b 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/arm64-apple-macos.swiftinterface +++ b/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/arm64-apple-macos.swiftinterface @@ -9,5 +9,19 @@ import _Concurrency import _StringProcessing import _SwiftConcurrencyShims public protocol MakeViewProvider { - var makeView: @_Concurrency.MainActor () -> any SwiftUI.View { get } + var makeView: @_Concurrency.MainActor () -> any SwiftUICore.View { get } } +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +@_Concurrency.MainActor @preconcurrency public struct AnyViewModifier : SwiftUICore.ViewModifier where M : SwiftUI.PreviewModifier, M.Context == () { + @_Concurrency.MainActor @preconcurrency public init(_ modifier: M) + @_Concurrency.MainActor @preconcurrency public func body(content: PreviewsSupport.AnyViewModifier.Content) -> some SwiftUICore.View + + @available(iOS 18.0, tvOS 18.0, watchOS 11.0, macOS 15.0, *) + public typealias Body = @_opaqueReturnTypeOf("$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", 0) __ +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +public enum PreviewModifierSupport { + public static func toViewModifier(modifier: A) -> PreviewsSupport.AnyViewModifier where A : SwiftUI.PreviewModifier, A.Context == () +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +extension PreviewsSupport.AnyViewModifier : Swift.Sendable {} diff --git a/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/x86_64-apple-macos.abi.json b/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/x86_64-apple-macos.abi.json index 1f096ec..5e0dd0b 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/x86_64-apple-macos.abi.json +++ b/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/x86_64-apple-macos.abi.json @@ -120,6 +120,248 @@ } ] }, + { + "kind": "TypeDecl", + "name": "AnyViewModifier", + "printedName": "AnyViewModifier", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Constructor", + "usr": "s:15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "mangledName": "$s15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "body", + "printedName": "body(content:)", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + }, + { + "kind": "TypeNominal", + "name": "_ViewModifier_Content", + "printedName": "SwiftUI._ViewModifier_Content>", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + } + ], + "usr": "s:7SwiftUI21_ViewModifier_ContentV" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Struct", + "usr": "s:15PreviewsSupport15AnyViewModifierV", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "ViewModifier", + "printedName": "ViewModifier", + "children": [ + { + "kind": "TypeWitness", + "name": "Body", + "printedName": "Body", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + } + ] + } + ], + "usr": "s:7SwiftUI12ViewModifierP", + "mangledName": "$s7SwiftUI12ViewModifierP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "PreviewModifierSupport", + "printedName": "PreviewModifierSupport", + "children": [ + { + "kind": "Function", + "name": "toViewModifier", + "printedName": "toViewModifier(modifier:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:15PreviewsSupport015PreviewModifierB0O", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O", + "moduleName": "PreviewsSupport", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + } + ] + }, { "kind": "TypeDecl", "name": "ViewPreviewSource", diff --git a/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/x86_64-apple-macos.swiftinterface b/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/x86_64-apple-macos.swiftinterface index 96e0674..35ff1ab 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/x86_64-apple-macos.swiftinterface +++ b/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/Modules/PreviewsSupport.swiftmodule/x86_64-apple-macos.swiftinterface @@ -9,5 +9,19 @@ import _Concurrency import _StringProcessing import _SwiftConcurrencyShims public protocol MakeViewProvider { - var makeView: @_Concurrency.MainActor () -> any SwiftUI.View { get } + var makeView: @_Concurrency.MainActor () -> any SwiftUICore.View { get } } +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +@_Concurrency.MainActor @preconcurrency public struct AnyViewModifier : SwiftUICore.ViewModifier where M : SwiftUI.PreviewModifier, M.Context == () { + @_Concurrency.MainActor @preconcurrency public init(_ modifier: M) + @_Concurrency.MainActor @preconcurrency public func body(content: PreviewsSupport.AnyViewModifier.Content) -> some SwiftUICore.View + + @available(iOS 18.0, tvOS 18.0, watchOS 11.0, macOS 15.0, *) + public typealias Body = @_opaqueReturnTypeOf("$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", 0) __ +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +public enum PreviewModifierSupport { + public static func toViewModifier(modifier: A) -> PreviewsSupport.AnyViewModifier where A : SwiftUI.PreviewModifier, A.Context == () +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +extension PreviewsSupport.AnyViewModifier : Swift.Sendable {} diff --git a/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/PreviewsSupport b/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/PreviewsSupport index bd70b83..7fc5209 100755 Binary files a/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/PreviewsSupport and b/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/PreviewsSupport differ diff --git a/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/Resources/Info.plist b/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/Resources/Info.plist index 33b8556..8a237a8 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/Resources/Info.plist +++ b/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/Resources/Info.plist @@ -3,7 +3,7 @@ BuildMachineOSBuild - 23G93 + 24A335 CFBundleDevelopmentRegion en CFBundleExecutable @@ -27,19 +27,19 @@ DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild - 24A5324a + 24A330 DTPlatformName macosx DTPlatformVersion 15.0 DTSDKBuild - 24A5324a + 24A330 DTSDKName macosx15.0 DTXcode 1600 DTXcodeBuild - 16A5230g + 16A242 LSMinimumSystemVersion 12.0 diff --git a/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/_CodeSignature/CodeResources b/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/_CodeSignature/CodeResources index ea7c3fa..4c733bb 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/_CodeSignature/CodeResources +++ b/PreviewsSupport/PreviewsSupport.xcframework/macos-arm64_x86_64/PreviewsSupport.framework/Versions/A/_CodeSignature/CodeResources @@ -6,7 +6,7 @@ Resources/Info.plist - wK7NTYa762P6qzO1UYGnqCm2WHM= + nQK7LmPOq3l7sYo669iyyeTyMq8= files2 @@ -29,14 +29,14 @@ hash2 - hTDka/Mld6kIHSRX0tvV+hNILMaPBPYCH8A8rKdTom8= + U9HuLUL7pbfMxO1Xp2eAJxJj+Eoj5uaCV6ps+OwJnnQ= Modules/PreviewsSupport.swiftmodule/arm64-apple-macos.private.swiftinterface hash2 - 6u3gSc8OezMKO8zLJe6QMxhZtCFGK4HUTQm23ZHXtk4= + XQEeyaEFTOEMa/ffqbCMTXDA25d6/9SMFKBpHJoa3pE= Modules/PreviewsSupport.swiftmodule/arm64-apple-macos.swiftdoc @@ -50,28 +50,28 @@ hash2 - ANyOhV8IffZgGva12lvIo5IdWZgsUBYpCMm7tTmWh0A= + ScgJ9xJw1g0B2ilGYYZsUcLBf9CZpvgO0Gz0Hs5IyBg= Modules/PreviewsSupport.swiftmodule/arm64-apple-macos.swiftmodule hash2 - 1Le/1pf8QN6R7DGDQK1ISVfqc2hyb2pwoVMIQYwynZs= + FkIeLztoQYmdGBers1x6xunLZrYSMF6blg6xM6DlOn4= Modules/PreviewsSupport.swiftmodule/x86_64-apple-macos.abi.json hash2 - hTDka/Mld6kIHSRX0tvV+hNILMaPBPYCH8A8rKdTom8= + U9HuLUL7pbfMxO1Xp2eAJxJj+Eoj5uaCV6ps+OwJnnQ= Modules/PreviewsSupport.swiftmodule/x86_64-apple-macos.private.swiftinterface hash2 - qJeIL6iAnU1J3p/alumo3JDtBWWKdGNIvs1d/ExaoUs= + nymlVuXEklxspncPMg3KehqOEiVlcsUOge9xfVY3aSA= Modules/PreviewsSupport.swiftmodule/x86_64-apple-macos.swiftdoc @@ -85,14 +85,14 @@ hash2 - kxMT26/vmv5yIbpyfymZnMrqGq2diwjdZKj2g1vx+do= + /ENtWy8d6iyMSl4s0rbcICiXzMX0SVnxyclFyTwTmmY= Modules/PreviewsSupport.swiftmodule/x86_64-apple-macos.swiftmodule hash2 - WgufQMZckblCl+0bZAjEv5n/iyO0d8jyYfwjyPI5Zw8= + nexWUbstcKHSjuDwmtZCqTQCQxfX9v6AEySfW+J9G58= Modules/module.modulemap @@ -106,7 +106,7 @@ hash2 - 03WLsnn1ZkT++lwBb1wr9bzDDYWlrQmqWwO+cBzbzRA= + X8KBIAxvUHCkCNG8ttm5/7dT2P8fC6oFGu6Ikpvheg4= diff --git a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64/PreviewsSupport.framework/Info.plist b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64/PreviewsSupport.framework/Info.plist index 5526366..0217649 100644 Binary files a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64/PreviewsSupport.framework/Info.plist and b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64/PreviewsSupport.framework/Info.plist differ diff --git a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos.abi.json b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos.abi.json index 812887c..2b80dca 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos.abi.json +++ b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos.abi.json @@ -319,6 +319,248 @@ } ] }, + { + "kind": "TypeDecl", + "name": "AnyViewModifier", + "printedName": "AnyViewModifier", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Constructor", + "usr": "s:15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "mangledName": "$s15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "body", + "printedName": "body(content:)", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + }, + { + "kind": "TypeNominal", + "name": "_ViewModifier_Content", + "printedName": "SwiftUI._ViewModifier_Content>", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + } + ], + "usr": "s:7SwiftUI21_ViewModifier_ContentV" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Struct", + "usr": "s:15PreviewsSupport15AnyViewModifierV", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "ViewModifier", + "printedName": "ViewModifier", + "children": [ + { + "kind": "TypeWitness", + "name": "Body", + "printedName": "Body", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + } + ] + } + ], + "usr": "s:7SwiftUI12ViewModifierP", + "mangledName": "$s7SwiftUI12ViewModifierP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "PreviewModifierSupport", + "printedName": "PreviewModifierSupport", + "children": [ + { + "kind": "Function", + "name": "toViewModifier", + "printedName": "toViewModifier(modifier:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:15PreviewsSupport015PreviewModifierB0O", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O", + "moduleName": "PreviewsSupport", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + } + ] + }, { "kind": "TypeDecl", "name": "UIViewPreviewSource", diff --git a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos.swiftinterface b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos.swiftinterface index 66668fe..8d2e568 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos.swiftinterface +++ b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos.swiftinterface @@ -10,7 +10,7 @@ import _Concurrency import _StringProcessing import _SwiftConcurrencyShims public protocol MakeViewProvider { - var makeView: @_Concurrency.MainActor () -> any SwiftUI.View { get } + var makeView: @_Concurrency.MainActor () -> any SwiftUICore.View { get } } public protocol MakeUIViewProvider { var makeView: @_Concurrency.MainActor () -> UIKit.UIView { get } @@ -18,3 +18,17 @@ public protocol MakeUIViewProvider { public protocol MakeViewControllerProvider { var makeViewController: @_Concurrency.MainActor () -> UIKit.UIViewController { get } } +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +@_Concurrency.MainActor @preconcurrency public struct AnyViewModifier : SwiftUICore.ViewModifier where M : SwiftUI.PreviewModifier, M.Context == () { + @_Concurrency.MainActor @preconcurrency public init(_ modifier: M) + @_Concurrency.MainActor @preconcurrency public func body(content: PreviewsSupport.AnyViewModifier.Content) -> some SwiftUICore.View + + @available(iOS 18.0, tvOS 18.0, watchOS 11.0, macOS 15.0, *) + public typealias Body = @_opaqueReturnTypeOf("$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", 0) __ +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +public enum PreviewModifierSupport { + public static func toViewModifier(modifier: A) -> PreviewsSupport.AnyViewModifier where A : SwiftUI.PreviewModifier, A.Context == () +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +extension PreviewsSupport.AnyViewModifier : Swift.Sendable {} diff --git a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64/PreviewsSupport.framework/PreviewsSupport b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64/PreviewsSupport.framework/PreviewsSupport index 64a8861..f9a6809 100755 Binary files a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64/PreviewsSupport.framework/PreviewsSupport and b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64/PreviewsSupport.framework/PreviewsSupport differ diff --git a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64/PreviewsSupport.framework/_CodeSignature/CodeResources b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64/PreviewsSupport.framework/_CodeSignature/CodeResources index c17ab02..a8e3f7d 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64/PreviewsSupport.framework/_CodeSignature/CodeResources +++ b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64/PreviewsSupport.framework/_CodeSignature/CodeResources @@ -14,15 +14,15 @@ Info.plist - ZwTPHgcCes0gbbIWTp26ph4P4DE= + bjjHLro846yyL9l3QxmkljjdjVo= Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos.abi.json - pvnbUYGZZJvuN0EX4dxSLv77GEM= + vkPYS1sILI7k9Mqc7uj/0meFgnw= Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos.private.swiftinterface - V6m5XhRJnDEsMM8NWJ+h2KDlT0M= + QvmvUTXOoRq++aWcLXncIiljBy0= Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos.swiftdoc @@ -30,11 +30,11 @@ Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos.swiftinterface - HhMeB3xRe4558Um3Ta3e4cmAaC8= + 7Obx18dEVUtMRiKwAAzlFbVgXto= Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos.swiftmodule - UA3qfQ///FhhgCY/O7mOTdd2Pac= + LdGkYZSiYzDg6ktWcIzwB7lSw8U= Modules/module.modulemap @@ -61,14 +61,14 @@ hash2 - GVJPxIbiEEUcNoUeRXhr5+TRSQImqphXoK+e6czzJiY= + eytM0xtqfTDY0Mkz/aoZAUbWAhGugCXH/QbwLztjpFU= Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos.private.swiftinterface hash2 - TERh8RMPHX3gsEGwBRAA6xH8elgw6kk3Zxmpegjt8kQ= + PD1ZD7ieycvCY+8AMLxIK0FA5Rg7YWFoea6UnXHTChw= Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos.swiftdoc @@ -82,14 +82,14 @@ hash2 - JqnrdmGqLhZ+uuzdNXgFTrMa4AQ7s5lZnyrfrVl+j4o= + Moaaiy27V/NBDqN5lRNKqil+IAAaTKyQVI5CeDuyAoA= Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos.swiftmodule hash2 - TezZqcHcLhv95tuMUFTuVEKDyqtqPZwAPTChVfkNies= + +x2X2SUmgipCqkQlMOCu5NfS1rdnW5u5ebmu30cWlLA= Modules/module.modulemap diff --git a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/Info.plist b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/Info.plist index 06b17db..62e10c9 100644 Binary files a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/Info.plist and b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/Info.plist differ diff --git a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos-simulator.abi.json b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos-simulator.abi.json index 812887c..2b80dca 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos-simulator.abi.json +++ b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos-simulator.abi.json @@ -319,6 +319,248 @@ } ] }, + { + "kind": "TypeDecl", + "name": "AnyViewModifier", + "printedName": "AnyViewModifier", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Constructor", + "usr": "s:15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "mangledName": "$s15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "body", + "printedName": "body(content:)", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + }, + { + "kind": "TypeNominal", + "name": "_ViewModifier_Content", + "printedName": "SwiftUI._ViewModifier_Content>", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + } + ], + "usr": "s:7SwiftUI21_ViewModifier_ContentV" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Struct", + "usr": "s:15PreviewsSupport15AnyViewModifierV", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "ViewModifier", + "printedName": "ViewModifier", + "children": [ + { + "kind": "TypeWitness", + "name": "Body", + "printedName": "Body", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + } + ] + } + ], + "usr": "s:7SwiftUI12ViewModifierP", + "mangledName": "$s7SwiftUI12ViewModifierP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "PreviewModifierSupport", + "printedName": "PreviewModifierSupport", + "children": [ + { + "kind": "Function", + "name": "toViewModifier", + "printedName": "toViewModifier(modifier:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:15PreviewsSupport015PreviewModifierB0O", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O", + "moduleName": "PreviewsSupport", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + } + ] + }, { "kind": "TypeDecl", "name": "UIViewPreviewSource", diff --git a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos-simulator.swiftinterface b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos-simulator.swiftinterface index 5f130d8..55ed89d 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos-simulator.swiftinterface +++ b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos-simulator.swiftinterface @@ -10,7 +10,7 @@ import _Concurrency import _StringProcessing import _SwiftConcurrencyShims public protocol MakeViewProvider { - var makeView: @_Concurrency.MainActor () -> any SwiftUI.View { get } + var makeView: @_Concurrency.MainActor () -> any SwiftUICore.View { get } } public protocol MakeUIViewProvider { var makeView: @_Concurrency.MainActor () -> UIKit.UIView { get } @@ -18,3 +18,17 @@ public protocol MakeUIViewProvider { public protocol MakeViewControllerProvider { var makeViewController: @_Concurrency.MainActor () -> UIKit.UIViewController { get } } +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +@_Concurrency.MainActor @preconcurrency public struct AnyViewModifier : SwiftUICore.ViewModifier where M : SwiftUI.PreviewModifier, M.Context == () { + @_Concurrency.MainActor @preconcurrency public init(_ modifier: M) + @_Concurrency.MainActor @preconcurrency public func body(content: PreviewsSupport.AnyViewModifier.Content) -> some SwiftUICore.View + + @available(iOS 18.0, tvOS 18.0, watchOS 11.0, macOS 15.0, *) + public typealias Body = @_opaqueReturnTypeOf("$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", 0) __ +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +public enum PreviewModifierSupport { + public static func toViewModifier(modifier: A) -> PreviewsSupport.AnyViewModifier where A : SwiftUI.PreviewModifier, A.Context == () +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +extension PreviewsSupport.AnyViewModifier : Swift.Sendable {} diff --git a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-tvos-simulator.abi.json b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-tvos-simulator.abi.json index 812887c..2b80dca 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-tvos-simulator.abi.json +++ b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-tvos-simulator.abi.json @@ -319,6 +319,248 @@ } ] }, + { + "kind": "TypeDecl", + "name": "AnyViewModifier", + "printedName": "AnyViewModifier", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Constructor", + "usr": "s:15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "mangledName": "$s15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "body", + "printedName": "body(content:)", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + }, + { + "kind": "TypeNominal", + "name": "_ViewModifier_Content", + "printedName": "SwiftUI._ViewModifier_Content>", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + } + ], + "usr": "s:7SwiftUI21_ViewModifier_ContentV" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Struct", + "usr": "s:15PreviewsSupport15AnyViewModifierV", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "ViewModifier", + "printedName": "ViewModifier", + "children": [ + { + "kind": "TypeWitness", + "name": "Body", + "printedName": "Body", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + } + ] + } + ], + "usr": "s:7SwiftUI12ViewModifierP", + "mangledName": "$s7SwiftUI12ViewModifierP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "PreviewModifierSupport", + "printedName": "PreviewModifierSupport", + "children": [ + { + "kind": "Function", + "name": "toViewModifier", + "printedName": "toViewModifier(modifier:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:15PreviewsSupport015PreviewModifierB0O", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O", + "moduleName": "PreviewsSupport", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + } + ] + }, { "kind": "TypeDecl", "name": "UIViewPreviewSource", diff --git a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface index 7695584..b5a001c 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface +++ b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface @@ -10,7 +10,7 @@ import _Concurrency import _StringProcessing import _SwiftConcurrencyShims public protocol MakeViewProvider { - var makeView: @_Concurrency.MainActor () -> any SwiftUI.View { get } + var makeView: @_Concurrency.MainActor () -> any SwiftUICore.View { get } } public protocol MakeUIViewProvider { var makeView: @_Concurrency.MainActor () -> UIKit.UIView { get } @@ -18,3 +18,17 @@ public protocol MakeUIViewProvider { public protocol MakeViewControllerProvider { var makeViewController: @_Concurrency.MainActor () -> UIKit.UIViewController { get } } +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +@_Concurrency.MainActor @preconcurrency public struct AnyViewModifier : SwiftUICore.ViewModifier where M : SwiftUI.PreviewModifier, M.Context == () { + @_Concurrency.MainActor @preconcurrency public init(_ modifier: M) + @_Concurrency.MainActor @preconcurrency public func body(content: PreviewsSupport.AnyViewModifier.Content) -> some SwiftUICore.View + + @available(iOS 18.0, tvOS 18.0, watchOS 11.0, macOS 15.0, *) + public typealias Body = @_opaqueReturnTypeOf("$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", 0) __ +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +public enum PreviewModifierSupport { + public static func toViewModifier(modifier: A) -> PreviewsSupport.AnyViewModifier where A : SwiftUI.PreviewModifier, A.Context == () +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +extension PreviewsSupport.AnyViewModifier : Swift.Sendable {} diff --git a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/PreviewsSupport b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/PreviewsSupport index cf0c785..62b47e2 100755 Binary files a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/PreviewsSupport and b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/PreviewsSupport differ diff --git a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/_CodeSignature/CodeResources b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/_CodeSignature/CodeResources index 76318c5..7e956b4 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/_CodeSignature/CodeResources +++ b/PreviewsSupport/PreviewsSupport.xcframework/tvos-arm64_x86_64-simulator/PreviewsSupport.framework/_CodeSignature/CodeResources @@ -14,15 +14,15 @@ Info.plist - OW2UB7IUQFYR0KECwgjs/sja84g= + 9ozMPn35iFYHXw+Kspq/ExUSewE= Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos-simulator.abi.json - pvnbUYGZZJvuN0EX4dxSLv77GEM= + vkPYS1sILI7k9Mqc7uj/0meFgnw= Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos-simulator.private.swiftinterface - sl/DUxWTvdvYPK2urWbgokE70pw= + uGlNPC1/Ryk2sNiLV+htXSr77lQ= Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos-simulator.swiftdoc @@ -30,19 +30,19 @@ Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos-simulator.swiftinterface - 1Llh0Tu/0qrADWq9k6C2Czab+kY= + k0+DGIdnirZn1HY8VHPrip5b1+Y= Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos-simulator.swiftmodule - 8IUG9vyulRUMyRGZDtpwj24yntU= + pTaWzETJ+z92GDQaywOZ/UL84kE= Modules/PreviewsSupport.swiftmodule/x86_64-apple-tvos-simulator.abi.json - pvnbUYGZZJvuN0EX4dxSLv77GEM= + vkPYS1sILI7k9Mqc7uj/0meFgnw= Modules/PreviewsSupport.swiftmodule/x86_64-apple-tvos-simulator.private.swiftinterface - vbBImBMwS72AXpY6X1BTqESjYXI= + V9aHzBo3OEUKAPHTNoZRFyHNhWU= Modules/PreviewsSupport.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc @@ -50,11 +50,11 @@ Modules/PreviewsSupport.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface - Om6EqNUfhu+CE/mtuE+e/Z8qgwQ= + Wa9aTuFTpWHnNXl6Rst5nFuzyk0= Modules/PreviewsSupport.swiftmodule/x86_64-apple-tvos-simulator.swiftmodule - g6dXKXlQ8DG6NUG5DuGzow2RrKI= + m2aD+SOcy/goRxvxbWsEC37TdH4= Modules/module.modulemap @@ -81,14 +81,14 @@ hash2 - GVJPxIbiEEUcNoUeRXhr5+TRSQImqphXoK+e6czzJiY= + eytM0xtqfTDY0Mkz/aoZAUbWAhGugCXH/QbwLztjpFU= Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos-simulator.private.swiftinterface hash2 - ok8bUhdb4XxNNDXg7hY6eg9GjRbOjf3APv2aq+jkch4= + u6CbFmAxtzOlwoktU3M5gR+mIoRRRWQxfTiAXniRHPs= Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos-simulator.swiftdoc @@ -102,28 +102,28 @@ hash2 - ZIrOzevWq5TLRsov4Tc+PYXbG7Vy4hiOIQ1JEL+DgBw= + UoI80qsyaZd34auGyISl8FQKowh7/mgWv4H077japNU= Modules/PreviewsSupport.swiftmodule/arm64-apple-tvos-simulator.swiftmodule hash2 - VEQdmUi+onR1hJQ1j/o4A91oCv6sIFldtoEZG863XR8= + /PcSrzH6HthHRs0KRVHLmoabKnxug2VGh1zxkhbS3dM= Modules/PreviewsSupport.swiftmodule/x86_64-apple-tvos-simulator.abi.json hash2 - GVJPxIbiEEUcNoUeRXhr5+TRSQImqphXoK+e6czzJiY= + eytM0xtqfTDY0Mkz/aoZAUbWAhGugCXH/QbwLztjpFU= Modules/PreviewsSupport.swiftmodule/x86_64-apple-tvos-simulator.private.swiftinterface hash2 - fd17UDwrT4jOzMlVuO7mLlzPngbMr0GgmQ1kg1JCm6c= + VoWPW8LrA/bfrr6js39vkTvWCxLopFwaSBFDnC70pSk= Modules/PreviewsSupport.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc @@ -137,14 +137,14 @@ hash2 - 8DY1ZwgawqUGiZMRuPcr06rRDWO7W2MyBO1gVPmzuEk= + lCI2f4nwuIEdOIUALsmv/ox+wU6Cr5I/O4WXAdoGxiI= Modules/PreviewsSupport.swiftmodule/x86_64-apple-tvos-simulator.swiftmodule hash2 - ZrAbAzSF5PTHE6aertkOMFMDs2K3ASiOs3yNmfhFeG8= + /ZLjvN6U86lK9z0d9AiYlcf6aX3BqbkzB5p+r0RHm3E= Modules/module.modulemap diff --git a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Info.plist b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Info.plist index 0b59d79..1c62ebf 100644 Binary files a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Info.plist and b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Info.plist differ diff --git a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos.abi.json b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos.abi.json index 0df5319..2e93403 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos.abi.json +++ b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos.abi.json @@ -127,6 +127,248 @@ } ] }, + { + "kind": "TypeDecl", + "name": "AnyViewModifier", + "printedName": "AnyViewModifier", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Constructor", + "usr": "s:15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "mangledName": "$s15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "body", + "printedName": "body(content:)", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + }, + { + "kind": "TypeNominal", + "name": "_ViewModifier_Content", + "printedName": "SwiftUI._ViewModifier_Content>", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + } + ], + "usr": "s:7SwiftUI21_ViewModifier_ContentV" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Struct", + "usr": "s:15PreviewsSupport15AnyViewModifierV", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "ViewModifier", + "printedName": "ViewModifier", + "children": [ + { + "kind": "TypeWitness", + "name": "Body", + "printedName": "Body", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + } + ] + } + ], + "usr": "s:7SwiftUI12ViewModifierP", + "mangledName": "$s7SwiftUI12ViewModifierP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "PreviewModifierSupport", + "printedName": "PreviewModifierSupport", + "children": [ + { + "kind": "Function", + "name": "toViewModifier", + "printedName": "toViewModifier(modifier:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:15PreviewsSupport015PreviewModifierB0O", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O", + "moduleName": "PreviewsSupport", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + } + ] + }, { "kind": "TypeDecl", "name": "ViewPreviewSource", diff --git a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos.swiftinterface b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos.swiftinterface index 6f06b97..5fa93c8 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos.swiftinterface +++ b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos.swiftinterface @@ -10,5 +10,19 @@ import _Concurrency import _StringProcessing import _SwiftConcurrencyShims public protocol MakeViewProvider { - var makeView: @_Concurrency.MainActor () -> any SwiftUI.View { get } + var makeView: @_Concurrency.MainActor () -> any SwiftUICore.View { get } } +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +@_Concurrency.MainActor @preconcurrency public struct AnyViewModifier : SwiftUICore.ViewModifier where M : SwiftUI.PreviewModifier, M.Context == () { + @_Concurrency.MainActor @preconcurrency public init(_ modifier: M) + @_Concurrency.MainActor @preconcurrency public func body(content: PreviewsSupport.AnyViewModifier.Content) -> some SwiftUICore.View + + @available(iOS 18.0, tvOS 18.0, watchOS 11.0, macOS 15.0, *) + public typealias Body = @_opaqueReturnTypeOf("$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", 0) __ +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +public enum PreviewModifierSupport { + public static func toViewModifier(modifier: A) -> PreviewsSupport.AnyViewModifier where A : SwiftUI.PreviewModifier, A.Context == () +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +extension PreviewsSupport.AnyViewModifier : Swift.Sendable {} diff --git a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64_32-apple-watchos.abi.json b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64_32-apple-watchos.abi.json index 0df5319..2e93403 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64_32-apple-watchos.abi.json +++ b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64_32-apple-watchos.abi.json @@ -127,6 +127,248 @@ } ] }, + { + "kind": "TypeDecl", + "name": "AnyViewModifier", + "printedName": "AnyViewModifier", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Constructor", + "usr": "s:15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "mangledName": "$s15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "body", + "printedName": "body(content:)", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + }, + { + "kind": "TypeNominal", + "name": "_ViewModifier_Content", + "printedName": "SwiftUI._ViewModifier_Content>", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + } + ], + "usr": "s:7SwiftUI21_ViewModifier_ContentV" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Struct", + "usr": "s:15PreviewsSupport15AnyViewModifierV", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "ViewModifier", + "printedName": "ViewModifier", + "children": [ + { + "kind": "TypeWitness", + "name": "Body", + "printedName": "Body", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + } + ] + } + ], + "usr": "s:7SwiftUI12ViewModifierP", + "mangledName": "$s7SwiftUI12ViewModifierP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "PreviewModifierSupport", + "printedName": "PreviewModifierSupport", + "children": [ + { + "kind": "Function", + "name": "toViewModifier", + "printedName": "toViewModifier(modifier:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:15PreviewsSupport015PreviewModifierB0O", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O", + "moduleName": "PreviewsSupport", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + } + ] + }, { "kind": "TypeDecl", "name": "ViewPreviewSource", diff --git a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64_32-apple-watchos.swiftinterface b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64_32-apple-watchos.swiftinterface index b53fd28..54cb4f2 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64_32-apple-watchos.swiftinterface +++ b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64_32-apple-watchos.swiftinterface @@ -10,5 +10,19 @@ import _Concurrency import _StringProcessing import _SwiftConcurrencyShims public protocol MakeViewProvider { - var makeView: @_Concurrency.MainActor () -> any SwiftUI.View { get } + var makeView: @_Concurrency.MainActor () -> any SwiftUICore.View { get } } +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +@_Concurrency.MainActor @preconcurrency public struct AnyViewModifier : SwiftUICore.ViewModifier where M : SwiftUI.PreviewModifier, M.Context == () { + @_Concurrency.MainActor @preconcurrency public init(_ modifier: M) + @_Concurrency.MainActor @preconcurrency public func body(content: PreviewsSupport.AnyViewModifier.Content) -> some SwiftUICore.View + + @available(iOS 18.0, tvOS 18.0, watchOS 11.0, macOS 15.0, *) + public typealias Body = @_opaqueReturnTypeOf("$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", 0) __ +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +public enum PreviewModifierSupport { + public static func toViewModifier(modifier: A) -> PreviewsSupport.AnyViewModifier where A : SwiftUI.PreviewModifier, A.Context == () +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +extension PreviewsSupport.AnyViewModifier : Swift.Sendable {} diff --git a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/armv7k-apple-watchos.abi.json b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/armv7k-apple-watchos.abi.json index 0df5319..2e93403 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/armv7k-apple-watchos.abi.json +++ b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/armv7k-apple-watchos.abi.json @@ -127,6 +127,248 @@ } ] }, + { + "kind": "TypeDecl", + "name": "AnyViewModifier", + "printedName": "AnyViewModifier", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Constructor", + "usr": "s:15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "mangledName": "$s15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "body", + "printedName": "body(content:)", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + }, + { + "kind": "TypeNominal", + "name": "_ViewModifier_Content", + "printedName": "SwiftUI._ViewModifier_Content>", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + } + ], + "usr": "s:7SwiftUI21_ViewModifier_ContentV" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Struct", + "usr": "s:15PreviewsSupport15AnyViewModifierV", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "ViewModifier", + "printedName": "ViewModifier", + "children": [ + { + "kind": "TypeWitness", + "name": "Body", + "printedName": "Body", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + } + ] + } + ], + "usr": "s:7SwiftUI12ViewModifierP", + "mangledName": "$s7SwiftUI12ViewModifierP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "PreviewModifierSupport", + "printedName": "PreviewModifierSupport", + "children": [ + { + "kind": "Function", + "name": "toViewModifier", + "printedName": "toViewModifier(modifier:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:15PreviewsSupport015PreviewModifierB0O", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O", + "moduleName": "PreviewsSupport", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + } + ] + }, { "kind": "TypeDecl", "name": "ViewPreviewSource", diff --git a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/armv7k-apple-watchos.swiftinterface b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/armv7k-apple-watchos.swiftinterface index 560c73b..0a132fa 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/armv7k-apple-watchos.swiftinterface +++ b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/armv7k-apple-watchos.swiftinterface @@ -10,5 +10,19 @@ import _Concurrency import _StringProcessing import _SwiftConcurrencyShims public protocol MakeViewProvider { - var makeView: @_Concurrency.MainActor () -> any SwiftUI.View { get } + var makeView: @_Concurrency.MainActor () -> any SwiftUICore.View { get } } +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +@_Concurrency.MainActor @preconcurrency public struct AnyViewModifier : SwiftUICore.ViewModifier where M : SwiftUI.PreviewModifier, M.Context == () { + @_Concurrency.MainActor @preconcurrency public init(_ modifier: M) + @_Concurrency.MainActor @preconcurrency public func body(content: PreviewsSupport.AnyViewModifier.Content) -> some SwiftUICore.View + + @available(iOS 18.0, tvOS 18.0, watchOS 11.0, macOS 15.0, *) + public typealias Body = @_opaqueReturnTypeOf("$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", 0) __ +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +public enum PreviewModifierSupport { + public static func toViewModifier(modifier: A) -> PreviewsSupport.AnyViewModifier where A : SwiftUI.PreviewModifier, A.Context == () +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +extension PreviewsSupport.AnyViewModifier : Swift.Sendable {} diff --git a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/PreviewsSupport b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/PreviewsSupport index 46668cd..91b1721 100755 Binary files a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/PreviewsSupport and b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/PreviewsSupport differ diff --git a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/_CodeSignature/CodeResources b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/_CodeSignature/CodeResources index 309c0ae..7186f1c 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/_CodeSignature/CodeResources +++ b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_arm64_32_armv7k/PreviewsSupport.framework/_CodeSignature/CodeResources @@ -14,15 +14,15 @@ Info.plist - SQ4LIVhZcN1+NR4Jrr6+b4Z7GFk= + uwrNqCLLx3882C7XPxe3mVjqPmU= Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos.abi.json - x+FTjbU+rB7gjS1j/5pUXxNRwSg= + mOsGLK++UxxIKgQyD3pUqO0vrtg= Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos.private.swiftinterface - 2w2z4BJDh5SEUnLNS9ngwHAYHyw= + XU1BlVzofJ8cy7/bXNC/vAVoRbE= Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos.swiftdoc @@ -30,19 +30,19 @@ Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos.swiftinterface - b3GQkb/gYNjgbqo8BSjFiO4ZwsI= + Gp5gJ3+k8OGOkEgQuhvi9lxX/O4= Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos.swiftmodule - pQwxsNdjonjJo/8y6tLdNIYH/Wc= + NL5MbXSY4lTAUK3QirvOI2j2yjM= Modules/PreviewsSupport.swiftmodule/arm64_32-apple-watchos.abi.json - x+FTjbU+rB7gjS1j/5pUXxNRwSg= + mOsGLK++UxxIKgQyD3pUqO0vrtg= Modules/PreviewsSupport.swiftmodule/arm64_32-apple-watchos.private.swiftinterface - tA6eWwwuvMusaGJ6gPNlZgXQc94= + vAR+h+K+A7XmKoacuugzxUbJ5O0= Modules/PreviewsSupport.swiftmodule/arm64_32-apple-watchos.swiftdoc @@ -50,19 +50,19 @@ Modules/PreviewsSupport.swiftmodule/arm64_32-apple-watchos.swiftinterface - 1G9apkQ2rYmG4sVc/IRKxb5vJFg= + 1m0Y551MTR5IqQi5TbBXzm8K8F4= Modules/PreviewsSupport.swiftmodule/arm64_32-apple-watchos.swiftmodule - S5BISOKH5Y1z2OIUTaeXXlnyQpE= + sDosgtKvg9uF1ZSGCs5Ww6L1r1A= Modules/PreviewsSupport.swiftmodule/armv7k-apple-watchos.abi.json - x+FTjbU+rB7gjS1j/5pUXxNRwSg= + mOsGLK++UxxIKgQyD3pUqO0vrtg= Modules/PreviewsSupport.swiftmodule/armv7k-apple-watchos.private.swiftinterface - ALFFJKfygNsKypzgoS5L7XSWyJQ= + ZbkIFDE4XTrrqB8dDfDXEbxBOvk= Modules/PreviewsSupport.swiftmodule/armv7k-apple-watchos.swiftdoc @@ -70,11 +70,11 @@ Modules/PreviewsSupport.swiftmodule/armv7k-apple-watchos.swiftinterface - NOpJKnGn9xFrwhj6LesOQomn7r0= + 0ZNmGpJzEMIbJcflij4TPSt7LO0= Modules/PreviewsSupport.swiftmodule/armv7k-apple-watchos.swiftmodule - 4/708ey/n7JdFgtT3FBL8pdHa0E= + O06jKE/mwsMavVd1Omi7lyOvVws= Modules/module.modulemap @@ -109,22 +109,22 @@ hash - x+FTjbU+rB7gjS1j/5pUXxNRwSg= + mOsGLK++UxxIKgQyD3pUqO0vrtg= hash2 - ZQC+MAAMmCmEiCJKCVMBoHSitTEvzMIAhHDeL1B2skg= + 99aJSziPTkox/7V0xv4k0U9zwVoK8DfujiFp6tNjQJ4= Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos.private.swiftinterface hash - 2w2z4BJDh5SEUnLNS9ngwHAYHyw= + XU1BlVzofJ8cy7/bXNC/vAVoRbE= hash2 - IyEEHf5Hv47G9Ocndq7+kVlPWl5Turi2Jl3xrQEqqRA= + 7znV9h+NZrHbpShaB/0WMKGxbbMgs2zjkTLspCBEjT0= Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos.swiftdoc @@ -142,44 +142,44 @@ hash - b3GQkb/gYNjgbqo8BSjFiO4ZwsI= + Gp5gJ3+k8OGOkEgQuhvi9lxX/O4= hash2 - DKbJmvDw+xxKg4uQEaz5In53rh0bpew0OPRQwnRICuM= + ZZ5r+adImRmCtcISrvvslVMOv1FqSspMABwuFJyCSgI= Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos.swiftmodule hash - pQwxsNdjonjJo/8y6tLdNIYH/Wc= + NL5MbXSY4lTAUK3QirvOI2j2yjM= hash2 - fQfxskfvWvJZixcBxzOs5LB2k6KktMxTwbpAwc0tITk= + 6Y/R8x1ErlEr/qnz1RHUl50nrlZiWgWJR2jKYZvOP2I= Modules/PreviewsSupport.swiftmodule/arm64_32-apple-watchos.abi.json hash - x+FTjbU+rB7gjS1j/5pUXxNRwSg= + mOsGLK++UxxIKgQyD3pUqO0vrtg= hash2 - ZQC+MAAMmCmEiCJKCVMBoHSitTEvzMIAhHDeL1B2skg= + 99aJSziPTkox/7V0xv4k0U9zwVoK8DfujiFp6tNjQJ4= Modules/PreviewsSupport.swiftmodule/arm64_32-apple-watchos.private.swiftinterface hash - tA6eWwwuvMusaGJ6gPNlZgXQc94= + vAR+h+K+A7XmKoacuugzxUbJ5O0= hash2 - 2WquAXBQQbaWBl/Qo9mtgX4yqJM5Hp5RAcDG6fXqOh8= + SztHUyhj4TC1xXJP2pvde/bsWPhzygePK/drjpQ6d2E= Modules/PreviewsSupport.swiftmodule/arm64_32-apple-watchos.swiftdoc @@ -197,44 +197,44 @@ hash - 1G9apkQ2rYmG4sVc/IRKxb5vJFg= + 1m0Y551MTR5IqQi5TbBXzm8K8F4= hash2 - QalICws2e/olovNB5XqHrM0fdRPwDLY38k7oULWSnxE= + vy/WDak0CfY5s4POR9JSApuXxhT+jth8Czo8oPeSdwQ= Modules/PreviewsSupport.swiftmodule/arm64_32-apple-watchos.swiftmodule hash - S5BISOKH5Y1z2OIUTaeXXlnyQpE= + sDosgtKvg9uF1ZSGCs5Ww6L1r1A= hash2 - 1/b2ul44yLv36Ggc/PFR2e3I4N9tOOWKzxcZSYWYASg= + Qo5UpsQpfmwVa6DzdUvkQZu4uCpWH4YoPO1udsZz3bc= Modules/PreviewsSupport.swiftmodule/armv7k-apple-watchos.abi.json hash - x+FTjbU+rB7gjS1j/5pUXxNRwSg= + mOsGLK++UxxIKgQyD3pUqO0vrtg= hash2 - ZQC+MAAMmCmEiCJKCVMBoHSitTEvzMIAhHDeL1B2skg= + 99aJSziPTkox/7V0xv4k0U9zwVoK8DfujiFp6tNjQJ4= Modules/PreviewsSupport.swiftmodule/armv7k-apple-watchos.private.swiftinterface hash - ALFFJKfygNsKypzgoS5L7XSWyJQ= + ZbkIFDE4XTrrqB8dDfDXEbxBOvk= hash2 - On1wLRdUgCLO6Qb+7ofUfp5EkhJmLh9xkXJS6MS/ILA= + 5ledhfO4zp0gVK3HEw1Gm2wJpjbjCQ1+vrWDmgmdFS0= Modules/PreviewsSupport.swiftmodule/armv7k-apple-watchos.swiftdoc @@ -252,22 +252,22 @@ hash - NOpJKnGn9xFrwhj6LesOQomn7r0= + 0ZNmGpJzEMIbJcflij4TPSt7LO0= hash2 - rtCAbxEh4NqPuG92Vi9yR9xvjd9kdsgcwCKNwCfnG3k= + xJD5Wc4ZGbHKMLmSu0WuD/4SCWW6tDJMokqnn+5V4XQ= Modules/PreviewsSupport.swiftmodule/armv7k-apple-watchos.swiftmodule hash - 4/708ey/n7JdFgtT3FBL8pdHa0E= + O06jKE/mwsMavVd1Omi7lyOvVws= hash2 - q9a3sNFARQEVFl01ikAspAgX9LnC+sXKE1dRurXsS6s= + kenhiHwnYHkvJCz8DRyk16KncbxDzwcbRwHr5h4sSJU= Modules/module.modulemap diff --git a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/Info.plist b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/Info.plist index e4cdfcd..3e7117c 100644 Binary files a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/Info.plist and b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/Info.plist differ diff --git a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos-simulator.abi.json b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos-simulator.abi.json index 0df5319..2e93403 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos-simulator.abi.json +++ b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos-simulator.abi.json @@ -127,6 +127,248 @@ } ] }, + { + "kind": "TypeDecl", + "name": "AnyViewModifier", + "printedName": "AnyViewModifier", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Constructor", + "usr": "s:15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "mangledName": "$s15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "body", + "printedName": "body(content:)", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + }, + { + "kind": "TypeNominal", + "name": "_ViewModifier_Content", + "printedName": "SwiftUI._ViewModifier_Content>", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + } + ], + "usr": "s:7SwiftUI21_ViewModifier_ContentV" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Struct", + "usr": "s:15PreviewsSupport15AnyViewModifierV", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "ViewModifier", + "printedName": "ViewModifier", + "children": [ + { + "kind": "TypeWitness", + "name": "Body", + "printedName": "Body", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + } + ] + } + ], + "usr": "s:7SwiftUI12ViewModifierP", + "mangledName": "$s7SwiftUI12ViewModifierP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "PreviewModifierSupport", + "printedName": "PreviewModifierSupport", + "children": [ + { + "kind": "Function", + "name": "toViewModifier", + "printedName": "toViewModifier(modifier:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:15PreviewsSupport015PreviewModifierB0O", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O", + "moduleName": "PreviewsSupport", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + } + ] + }, { "kind": "TypeDecl", "name": "ViewPreviewSource", diff --git a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos-simulator.swiftinterface b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos-simulator.swiftinterface index 26b2fd6..640e1b7 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos-simulator.swiftinterface +++ b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos-simulator.swiftinterface @@ -10,5 +10,19 @@ import _Concurrency import _StringProcessing import _SwiftConcurrencyShims public protocol MakeViewProvider { - var makeView: @_Concurrency.MainActor () -> any SwiftUI.View { get } + var makeView: @_Concurrency.MainActor () -> any SwiftUICore.View { get } } +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +@_Concurrency.MainActor @preconcurrency public struct AnyViewModifier : SwiftUICore.ViewModifier where M : SwiftUI.PreviewModifier, M.Context == () { + @_Concurrency.MainActor @preconcurrency public init(_ modifier: M) + @_Concurrency.MainActor @preconcurrency public func body(content: PreviewsSupport.AnyViewModifier.Content) -> some SwiftUICore.View + + @available(iOS 18.0, tvOS 18.0, watchOS 11.0, macOS 15.0, *) + public typealias Body = @_opaqueReturnTypeOf("$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", 0) __ +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +public enum PreviewModifierSupport { + public static func toViewModifier(modifier: A) -> PreviewsSupport.AnyViewModifier where A : SwiftUI.PreviewModifier, A.Context == () +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +extension PreviewsSupport.AnyViewModifier : Swift.Sendable {} diff --git a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-watchos-simulator.abi.json b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-watchos-simulator.abi.json index 0df5319..2e93403 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-watchos-simulator.abi.json +++ b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-watchos-simulator.abi.json @@ -127,6 +127,248 @@ } ] }, + { + "kind": "TypeDecl", + "name": "AnyViewModifier", + "printedName": "AnyViewModifier", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Constructor", + "usr": "s:15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "mangledName": "$s15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "body", + "printedName": "body(content:)", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + }, + { + "kind": "TypeNominal", + "name": "_ViewModifier_Content", + "printedName": "SwiftUI._ViewModifier_Content>", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + } + ], + "usr": "s:7SwiftUI21_ViewModifier_ContentV" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Struct", + "usr": "s:15PreviewsSupport15AnyViewModifierV", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "ViewModifier", + "printedName": "ViewModifier", + "children": [ + { + "kind": "TypeWitness", + "name": "Body", + "printedName": "Body", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + } + ] + } + ], + "usr": "s:7SwiftUI12ViewModifierP", + "mangledName": "$s7SwiftUI12ViewModifierP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "PreviewModifierSupport", + "printedName": "PreviewModifierSupport", + "children": [ + { + "kind": "Function", + "name": "toViewModifier", + "printedName": "toViewModifier(modifier:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:15PreviewsSupport015PreviewModifierB0O", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O", + "moduleName": "PreviewsSupport", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + } + ] + }, { "kind": "TypeDecl", "name": "ViewPreviewSource", diff --git a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-watchos-simulator.swiftinterface b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-watchos-simulator.swiftinterface index 880e477..5a466cb 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-watchos-simulator.swiftinterface +++ b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-watchos-simulator.swiftinterface @@ -10,5 +10,19 @@ import _Concurrency import _StringProcessing import _SwiftConcurrencyShims public protocol MakeViewProvider { - var makeView: @_Concurrency.MainActor () -> any SwiftUI.View { get } + var makeView: @_Concurrency.MainActor () -> any SwiftUICore.View { get } } +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +@_Concurrency.MainActor @preconcurrency public struct AnyViewModifier : SwiftUICore.ViewModifier where M : SwiftUI.PreviewModifier, M.Context == () { + @_Concurrency.MainActor @preconcurrency public init(_ modifier: M) + @_Concurrency.MainActor @preconcurrency public func body(content: PreviewsSupport.AnyViewModifier.Content) -> some SwiftUICore.View + + @available(iOS 18.0, tvOS 18.0, watchOS 11.0, macOS 15.0, *) + public typealias Body = @_opaqueReturnTypeOf("$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", 0) __ +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +public enum PreviewModifierSupport { + public static func toViewModifier(modifier: A) -> PreviewsSupport.AnyViewModifier where A : SwiftUI.PreviewModifier, A.Context == () +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +extension PreviewsSupport.AnyViewModifier : Swift.Sendable {} diff --git a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/PreviewsSupport b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/PreviewsSupport index a57b20e..c573442 100755 Binary files a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/PreviewsSupport and b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/PreviewsSupport differ diff --git a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/_CodeSignature/CodeResources b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/_CodeSignature/CodeResources index 287b1cd..baf7480 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/_CodeSignature/CodeResources +++ b/PreviewsSupport/PreviewsSupport.xcframework/watchos-arm64_x86_64-simulator/PreviewsSupport.framework/_CodeSignature/CodeResources @@ -14,15 +14,15 @@ Info.plist - W5qpnYzqcZ99OID1tpeaITRpikg= + xZ861nsW11pw4lNuDIMsJqgOir0= Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos-simulator.abi.json - x+FTjbU+rB7gjS1j/5pUXxNRwSg= + mOsGLK++UxxIKgQyD3pUqO0vrtg= Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos-simulator.private.swiftinterface - RtShbV47tVL5693DWtJOgskdLyg= + poVTBXgEiZ1pnqWBpR9NqwrN+QE= Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos-simulator.swiftdoc @@ -30,19 +30,19 @@ Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos-simulator.swiftinterface - ieWOxZOephwiweKUv7wS6MwgY/s= + TooMhBslPQDIlwp8zL58klPW+a8= Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos-simulator.swiftmodule - XzvC/XIwFkpo8SICOtLPquHTkT8= + etsZ4Vr4C1Q6wB3SlKP13Mz8aV0= Modules/PreviewsSupport.swiftmodule/x86_64-apple-watchos-simulator.abi.json - x+FTjbU+rB7gjS1j/5pUXxNRwSg= + mOsGLK++UxxIKgQyD3pUqO0vrtg= Modules/PreviewsSupport.swiftmodule/x86_64-apple-watchos-simulator.private.swiftinterface - Glcf6iHYxrqQ6NqnJwn1nxn8DIE= + 0W5GOgmw01zWasYaZpt4N9bgSNo= Modules/PreviewsSupport.swiftmodule/x86_64-apple-watchos-simulator.swiftdoc @@ -50,11 +50,11 @@ Modules/PreviewsSupport.swiftmodule/x86_64-apple-watchos-simulator.swiftinterface - mC3WvfVXtFS/Kv4K2192A08CHhs= + 93qd4AOEhSMb7yavECTmTN8DHIc= Modules/PreviewsSupport.swiftmodule/x86_64-apple-watchos-simulator.swiftmodule - Afx801pXsZ9MLPpgAUISPtZ93Zs= + MiQ53nNnVwWwM58Tkof4dzDFjnc= Modules/module.modulemap @@ -81,14 +81,14 @@ hash2 - ZQC+MAAMmCmEiCJKCVMBoHSitTEvzMIAhHDeL1B2skg= + 99aJSziPTkox/7V0xv4k0U9zwVoK8DfujiFp6tNjQJ4= Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos-simulator.private.swiftinterface hash2 - 7K4B8QF9ed937xwmB1JXcSdBfzsMIMWKC+yZ1s1/Et8= + cxe+Cjy92aVhabZT+dJjs0NyQS+8ikEVBf0yU/IEqto= Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos-simulator.swiftdoc @@ -102,28 +102,28 @@ hash2 - u4fsIl3JydiFht+ZWyxuVPGwg/cELaina5zo4qg6QTg= + +TlOTErRvLTe7wdQ/072LNkuUNlyl9N9+JyxDK/XTGI= Modules/PreviewsSupport.swiftmodule/arm64-apple-watchos-simulator.swiftmodule hash2 - Sd3RoNp+CFo5Mj9pT6sF4CDyMtG0/RJFX+WfpF1s4KQ= + gPvPhDsE4WS1VfFL+8fzibo4Q3rutJcnt5SrvfRjmJw= Modules/PreviewsSupport.swiftmodule/x86_64-apple-watchos-simulator.abi.json hash2 - ZQC+MAAMmCmEiCJKCVMBoHSitTEvzMIAhHDeL1B2skg= + 99aJSziPTkox/7V0xv4k0U9zwVoK8DfujiFp6tNjQJ4= Modules/PreviewsSupport.swiftmodule/x86_64-apple-watchos-simulator.private.swiftinterface hash2 - FnfDxqTzHw6ROZzY4wThPbFcMzbR0bM5Iu4HEs0UPMs= + va7sGU279EbyBxnBgFpuGRRJA1oQ/KQKjV5TEe8KQcI= Modules/PreviewsSupport.swiftmodule/x86_64-apple-watchos-simulator.swiftdoc @@ -137,14 +137,14 @@ hash2 - WMgExHOnnEoPlZlj82S7WoQYATsEQsiWAS1IkIHM1PA= + n4czN/QvM2Mxpquy+Jef4U3JOlisB6YE7KDckn81N2Q= Modules/PreviewsSupport.swiftmodule/x86_64-apple-watchos-simulator.swiftmodule hash2 - vOKQt0Aa8P3XB1pMUZCr5ugkzIalE99Kadpn1HBJoKE= + kPFOfcBx+5j1i9hnlgy1hOss+mcnPRv+tqxd8UXFmJM= Modules/module.modulemap diff --git a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64/PreviewsSupport.framework/Info.plist b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64/PreviewsSupport.framework/Info.plist index f4dcb4b..eeaac09 100644 Binary files a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64/PreviewsSupport.framework/Info.plist and b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64/PreviewsSupport.framework/Info.plist differ diff --git a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-xros.abi.json b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-xros.abi.json index 812887c..2b80dca 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-xros.abi.json +++ b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-xros.abi.json @@ -319,6 +319,248 @@ } ] }, + { + "kind": "TypeDecl", + "name": "AnyViewModifier", + "printedName": "AnyViewModifier", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Constructor", + "usr": "s:15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "mangledName": "$s15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "body", + "printedName": "body(content:)", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + }, + { + "kind": "TypeNominal", + "name": "_ViewModifier_Content", + "printedName": "SwiftUI._ViewModifier_Content>", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + } + ], + "usr": "s:7SwiftUI21_ViewModifier_ContentV" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Struct", + "usr": "s:15PreviewsSupport15AnyViewModifierV", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "ViewModifier", + "printedName": "ViewModifier", + "children": [ + { + "kind": "TypeWitness", + "name": "Body", + "printedName": "Body", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + } + ] + } + ], + "usr": "s:7SwiftUI12ViewModifierP", + "mangledName": "$s7SwiftUI12ViewModifierP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "PreviewModifierSupport", + "printedName": "PreviewModifierSupport", + "children": [ + { + "kind": "Function", + "name": "toViewModifier", + "printedName": "toViewModifier(modifier:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:15PreviewsSupport015PreviewModifierB0O", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O", + "moduleName": "PreviewsSupport", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + } + ] + }, { "kind": "TypeDecl", "name": "UIViewPreviewSource", diff --git a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-xros.swiftinterface b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-xros.swiftinterface index 691a12b..687a80d 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-xros.swiftinterface +++ b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-xros.swiftinterface @@ -10,7 +10,7 @@ import _Concurrency import _StringProcessing import _SwiftConcurrencyShims public protocol MakeViewProvider { - var makeView: @_Concurrency.MainActor () -> any SwiftUI.View { get } + var makeView: @_Concurrency.MainActor () -> any SwiftUICore.View { get } } public protocol MakeUIViewProvider { var makeView: @_Concurrency.MainActor () -> UIKit.UIView { get } @@ -18,3 +18,17 @@ public protocol MakeUIViewProvider { public protocol MakeViewControllerProvider { var makeViewController: @_Concurrency.MainActor () -> UIKit.UIViewController { get } } +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +@_Concurrency.MainActor @preconcurrency public struct AnyViewModifier : SwiftUICore.ViewModifier where M : SwiftUI.PreviewModifier, M.Context == () { + @_Concurrency.MainActor @preconcurrency public init(_ modifier: M) + @_Concurrency.MainActor @preconcurrency public func body(content: PreviewsSupport.AnyViewModifier.Content) -> some SwiftUICore.View + + @available(iOS 18.0, tvOS 18.0, watchOS 11.0, macOS 15.0, *) + public typealias Body = @_opaqueReturnTypeOf("$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", 0) __ +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +public enum PreviewModifierSupport { + public static func toViewModifier(modifier: A) -> PreviewsSupport.AnyViewModifier where A : SwiftUI.PreviewModifier, A.Context == () +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +extension PreviewsSupport.AnyViewModifier : Swift.Sendable {} diff --git a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64/PreviewsSupport.framework/PreviewsSupport b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64/PreviewsSupport.framework/PreviewsSupport index 0a9dee6..c1146f1 100755 Binary files a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64/PreviewsSupport.framework/PreviewsSupport and b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64/PreviewsSupport.framework/PreviewsSupport differ diff --git a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64/PreviewsSupport.framework/_CodeSignature/CodeResources b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64/PreviewsSupport.framework/_CodeSignature/CodeResources index 0df81fb..a92984c 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64/PreviewsSupport.framework/_CodeSignature/CodeResources +++ b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64/PreviewsSupport.framework/_CodeSignature/CodeResources @@ -14,15 +14,15 @@ Info.plist - 8fWGrgUwSLyB758gRj6FrNbVIQs= + 4bdYGWwkYqb1yaJx2f7cu9gjDgE= Modules/PreviewsSupport.swiftmodule/arm64-apple-xros.abi.json - pvnbUYGZZJvuN0EX4dxSLv77GEM= + vkPYS1sILI7k9Mqc7uj/0meFgnw= Modules/PreviewsSupport.swiftmodule/arm64-apple-xros.private.swiftinterface - gvEMusEoUX8192fK0isOhJadCDg= + zl9lBZ2lc90toXwdh//3j2QaftY= Modules/PreviewsSupport.swiftmodule/arm64-apple-xros.swiftdoc @@ -30,11 +30,11 @@ Modules/PreviewsSupport.swiftmodule/arm64-apple-xros.swiftinterface - 1sMa8k/57Vi2/4uFfECspB675yg= + gEEDEyA97u93e9TwGmVITUN+N4A= Modules/PreviewsSupport.swiftmodule/arm64-apple-xros.swiftmodule - ieqCbg27nWBdJ3yWycW9r5g0ZxE= + bx4vRfVaT6eJPZ/y1NN+qQ/vP0s= Modules/module.modulemap @@ -61,14 +61,14 @@ hash2 - GVJPxIbiEEUcNoUeRXhr5+TRSQImqphXoK+e6czzJiY= + eytM0xtqfTDY0Mkz/aoZAUbWAhGugCXH/QbwLztjpFU= Modules/PreviewsSupport.swiftmodule/arm64-apple-xros.private.swiftinterface hash2 - ozyhXPLogKob6d5rCdykJF9ncOrPT6s5NlpQLsIiB7c= + fr1OxWTVC6H/KC2rRV/hVXIUIQ0KcR0EAxr+de7+P0Q= Modules/PreviewsSupport.swiftmodule/arm64-apple-xros.swiftdoc @@ -82,14 +82,14 @@ hash2 - nEGOQJtSkmk1LEmi4Bb7iLMVujJJLcGhxnPc31a80W8= + 4N2CVVk5BsRa5kwkYRQpbrEdgo6WgZ1uFLPT63pL5AY= Modules/PreviewsSupport.swiftmodule/arm64-apple-xros.swiftmodule hash2 - evTcw8OUyxcp9qEzp/78giHHFDwP6ebC1N5BsAGC2ms= + j28LhbI16qJKBzNceygLjGS3tCNgzsB8qwAgFyT82nE= Modules/module.modulemap diff --git a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/Info.plist b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/Info.plist index 4163e1b..6a4f8ff 100644 Binary files a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/Info.plist and b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/Info.plist differ diff --git a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-xros-simulator.abi.json b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-xros-simulator.abi.json index 812887c..2b80dca 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-xros-simulator.abi.json +++ b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-xros-simulator.abi.json @@ -319,6 +319,248 @@ } ] }, + { + "kind": "TypeDecl", + "name": "AnyViewModifier", + "printedName": "AnyViewModifier", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Constructor", + "usr": "s:15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "mangledName": "$s15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "body", + "printedName": "body(content:)", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + }, + { + "kind": "TypeNominal", + "name": "_ViewModifier_Content", + "printedName": "SwiftUI._ViewModifier_Content>", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + } + ], + "usr": "s:7SwiftUI21_ViewModifier_ContentV" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Struct", + "usr": "s:15PreviewsSupport15AnyViewModifierV", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "ViewModifier", + "printedName": "ViewModifier", + "children": [ + { + "kind": "TypeWitness", + "name": "Body", + "printedName": "Body", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + } + ] + } + ], + "usr": "s:7SwiftUI12ViewModifierP", + "mangledName": "$s7SwiftUI12ViewModifierP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "PreviewModifierSupport", + "printedName": "PreviewModifierSupport", + "children": [ + { + "kind": "Function", + "name": "toViewModifier", + "printedName": "toViewModifier(modifier:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:15PreviewsSupport015PreviewModifierB0O", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O", + "moduleName": "PreviewsSupport", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + } + ] + }, { "kind": "TypeDecl", "name": "UIViewPreviewSource", diff --git a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-xros-simulator.swiftinterface b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-xros-simulator.swiftinterface index 6293ee2..5b74f3a 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-xros-simulator.swiftinterface +++ b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/arm64-apple-xros-simulator.swiftinterface @@ -10,7 +10,7 @@ import _Concurrency import _StringProcessing import _SwiftConcurrencyShims public protocol MakeViewProvider { - var makeView: @_Concurrency.MainActor () -> any SwiftUI.View { get } + var makeView: @_Concurrency.MainActor () -> any SwiftUICore.View { get } } public protocol MakeUIViewProvider { var makeView: @_Concurrency.MainActor () -> UIKit.UIView { get } @@ -18,3 +18,17 @@ public protocol MakeUIViewProvider { public protocol MakeViewControllerProvider { var makeViewController: @_Concurrency.MainActor () -> UIKit.UIViewController { get } } +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +@_Concurrency.MainActor @preconcurrency public struct AnyViewModifier : SwiftUICore.ViewModifier where M : SwiftUI.PreviewModifier, M.Context == () { + @_Concurrency.MainActor @preconcurrency public init(_ modifier: M) + @_Concurrency.MainActor @preconcurrency public func body(content: PreviewsSupport.AnyViewModifier.Content) -> some SwiftUICore.View + + @available(iOS 18.0, tvOS 18.0, watchOS 11.0, macOS 15.0, *) + public typealias Body = @_opaqueReturnTypeOf("$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", 0) __ +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +public enum PreviewModifierSupport { + public static func toViewModifier(modifier: A) -> PreviewsSupport.AnyViewModifier where A : SwiftUI.PreviewModifier, A.Context == () +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +extension PreviewsSupport.AnyViewModifier : Swift.Sendable {} diff --git a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-xros-simulator.abi.json b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-xros-simulator.abi.json index 812887c..2b80dca 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-xros-simulator.abi.json +++ b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-xros-simulator.abi.json @@ -319,6 +319,248 @@ } ] }, + { + "kind": "TypeDecl", + "name": "AnyViewModifier", + "printedName": "AnyViewModifier", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Constructor", + "usr": "s:15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "mangledName": "$s15PreviewsSupport15AnyViewModifierVyACyxGxcfc", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "body", + "printedName": "body(content:)", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + }, + { + "kind": "TypeNominal", + "name": "_ViewModifier_Content", + "printedName": "SwiftUI._ViewModifier_Content>", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + } + ], + "usr": "s:7SwiftUI21_ViewModifier_ContentV" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Struct", + "usr": "s:15PreviewsSupport15AnyViewModifierV", + "mangledName": "$s15PreviewsSupport15AnyViewModifierV", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "Preconcurrency", + "Custom", + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "ViewModifier", + "printedName": "ViewModifier", + "children": [ + { + "kind": "TypeWitness", + "name": "Body", + "printedName": "Body", + "children": [ + { + "kind": "TypeNominal", + "name": "OpaqueTypeArchetype", + "printedName": "some SwiftUI.View", + "children": [ + { + "kind": "TypeNominal", + "name": "View", + "printedName": "SwiftUI.View", + "usr": "s:7SwiftUI4ViewP" + } + ] + } + ] + } + ], + "usr": "s:7SwiftUI12ViewModifierP", + "mangledName": "$s7SwiftUI12ViewModifierP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "PreviewModifierSupport", + "printedName": "PreviewModifierSupport", + "children": [ + { + "kind": "Function", + "name": "toViewModifier", + "printedName": "toViewModifier(modifier:)", + "children": [ + { + "kind": "TypeNominal", + "name": "AnyViewModifier", + "printedName": "PreviewsSupport.AnyViewModifier<τ_0_0>", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "usr": "s:15PreviewsSupport15AnyViewModifierV" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O06toViewD08modifierAA03AnyfD0VyxGx_t7SwiftUI0cD0Rzyt7ContextRtzlFZ", + "moduleName": "PreviewsSupport", + "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.PreviewModifier, τ_0_0.Context == ()>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:15PreviewsSupport015PreviewModifierB0O", + "mangledName": "$s15PreviewsSupport015PreviewModifierB0O", + "moduleName": "PreviewsSupport", + "intro_Macosx": "15.0", + "intro_iOS": "18.0", + "intro_tvOS": "18.0", + "intro_watchOS": "11.0", + "declAttributes": [ + "AccessControl", + "Available", + "Available", + "Available", + "Available" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + } + ] + }, { "kind": "TypeDecl", "name": "UIViewPreviewSource", diff --git a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-xros-simulator.swiftinterface b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-xros-simulator.swiftinterface index 19e7cd5..67d7ee9 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-xros-simulator.swiftinterface +++ b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/Modules/PreviewsSupport.swiftmodule/x86_64-apple-xros-simulator.swiftinterface @@ -10,7 +10,7 @@ import _Concurrency import _StringProcessing import _SwiftConcurrencyShims public protocol MakeViewProvider { - var makeView: @_Concurrency.MainActor () -> any SwiftUI.View { get } + var makeView: @_Concurrency.MainActor () -> any SwiftUICore.View { get } } public protocol MakeUIViewProvider { var makeView: @_Concurrency.MainActor () -> UIKit.UIView { get } @@ -18,3 +18,17 @@ public protocol MakeUIViewProvider { public protocol MakeViewControllerProvider { var makeViewController: @_Concurrency.MainActor () -> UIKit.UIViewController { get } } +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +@_Concurrency.MainActor @preconcurrency public struct AnyViewModifier : SwiftUICore.ViewModifier where M : SwiftUI.PreviewModifier, M.Context == () { + @_Concurrency.MainActor @preconcurrency public init(_ modifier: M) + @_Concurrency.MainActor @preconcurrency public func body(content: PreviewsSupport.AnyViewModifier.Content) -> some SwiftUICore.View + + @available(iOS 18.0, tvOS 18.0, watchOS 11.0, macOS 15.0, *) + public typealias Body = @_opaqueReturnTypeOf("$s15PreviewsSupport15AnyViewModifierV4body7contentQr7SwiftUI01_dE8_ContentVyACyxGG_tF", 0) __ +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +public enum PreviewModifierSupport { + public static func toViewModifier(modifier: A) -> PreviewsSupport.AnyViewModifier where A : SwiftUI.PreviewModifier, A.Context == () +} +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +extension PreviewsSupport.AnyViewModifier : Swift.Sendable {} diff --git a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/PreviewsSupport b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/PreviewsSupport index 32ee66c..fd466c3 100755 Binary files a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/PreviewsSupport and b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/PreviewsSupport differ diff --git a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/_CodeSignature/CodeResources b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/_CodeSignature/CodeResources index 332e7a5..3c0b2e3 100644 --- a/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/_CodeSignature/CodeResources +++ b/PreviewsSupport/PreviewsSupport.xcframework/xros-arm64_x86_64-simulator/PreviewsSupport.framework/_CodeSignature/CodeResources @@ -14,15 +14,15 @@ Info.plist - 8sZZ46tpetXvLjFPpmdOuzRltQM= + /l4bdzyGDK9/8Q/HnF4pFXr6x54= Modules/PreviewsSupport.swiftmodule/arm64-apple-xros-simulator.abi.json - pvnbUYGZZJvuN0EX4dxSLv77GEM= + vkPYS1sILI7k9Mqc7uj/0meFgnw= Modules/PreviewsSupport.swiftmodule/arm64-apple-xros-simulator.private.swiftinterface - 4sIgRT9u9rr52cTV6b1fgitRbOI= + eeB/x7zTKvXaiTryUA2Febw+j1Y= Modules/PreviewsSupport.swiftmodule/arm64-apple-xros-simulator.swiftdoc @@ -30,19 +30,19 @@ Modules/PreviewsSupport.swiftmodule/arm64-apple-xros-simulator.swiftinterface - KBwZQVL6rx8KUF7YzBGP9wdh1Lw= + jUG78zE24jqTsmPVwxUMxPjw5dw= Modules/PreviewsSupport.swiftmodule/arm64-apple-xros-simulator.swiftmodule - aRm07dhvvngZAM+85W5dR24Ut7w= + scSgM2ljf+0wopli6rJ6A7Qx6Wg= Modules/PreviewsSupport.swiftmodule/x86_64-apple-xros-simulator.abi.json - pvnbUYGZZJvuN0EX4dxSLv77GEM= + vkPYS1sILI7k9Mqc7uj/0meFgnw= Modules/PreviewsSupport.swiftmodule/x86_64-apple-xros-simulator.private.swiftinterface - pn97FchXsbaTRJb/2qd1A7UDg+U= + zzSPwO7l98Dc6ou+46Q775JKyp4= Modules/PreviewsSupport.swiftmodule/x86_64-apple-xros-simulator.swiftdoc @@ -50,11 +50,11 @@ Modules/PreviewsSupport.swiftmodule/x86_64-apple-xros-simulator.swiftinterface - fBe+KbYSwqrQ3oXl2touU8BGwcI= + j2XiVZ9damuc4fjtNqJVCAFrCfo= Modules/PreviewsSupport.swiftmodule/x86_64-apple-xros-simulator.swiftmodule - QvVuVBzpyJb7PE0rNIkrqLIGLzw= + iEVHKJFlphBSQozW12b7hyiHoHo= Modules/module.modulemap @@ -81,14 +81,14 @@ hash2 - GVJPxIbiEEUcNoUeRXhr5+TRSQImqphXoK+e6czzJiY= + eytM0xtqfTDY0Mkz/aoZAUbWAhGugCXH/QbwLztjpFU= Modules/PreviewsSupport.swiftmodule/arm64-apple-xros-simulator.private.swiftinterface hash2 - i38e7R25iT++/UHs9xo2F4H0N0zUABvhjjG/FjDrBDA= + YRcbqc5ITcIE9ZM1qNdWzgw+uXmHYwxQ0/HhVZ/29UQ= Modules/PreviewsSupport.swiftmodule/arm64-apple-xros-simulator.swiftdoc @@ -102,28 +102,28 @@ hash2 - w7N23y+AMyv2nTb8q0Pd6mE4WAff/r5bgxC3oHfPu1A= + +MPHe7HIEi7McwSgOGaQS4B0S76UrFWuhQ6Ouw+4Eac= Modules/PreviewsSupport.swiftmodule/arm64-apple-xros-simulator.swiftmodule hash2 - BK2IsNZqjuzlxN7UCT/ZvNF+EN2O8uA2UnQIaqHYEqQ= + OSRIDQJdH7pFjfvIbOXLQWCUlwYoiYCRFJqy+eexTCg= Modules/PreviewsSupport.swiftmodule/x86_64-apple-xros-simulator.abi.json hash2 - GVJPxIbiEEUcNoUeRXhr5+TRSQImqphXoK+e6czzJiY= + eytM0xtqfTDY0Mkz/aoZAUbWAhGugCXH/QbwLztjpFU= Modules/PreviewsSupport.swiftmodule/x86_64-apple-xros-simulator.private.swiftinterface hash2 - Ga8xjZrsvSVKv5BJEsSlFmfwvJjEIObI3XzDI4nZVIk= + gZdMer6HLoJrqYSnNITXIGK1JJtvxXqKhbnWab1+5hA= Modules/PreviewsSupport.swiftmodule/x86_64-apple-xros-simulator.swiftdoc @@ -137,14 +137,14 @@ hash2 - LsQIBfkjyxXjihZJGQFl3+2nSfKNAQhThG5RU8AVFjo= + 7XJYipB08Rfmn4KLATRTM3JsXbdYcqLTqiBYeMUG11k= Modules/PreviewsSupport.swiftmodule/x86_64-apple-xros-simulator.swiftmodule hash2 - 2IUiQ4SIcQeR6VBmHXQb9wgpTo7kl5Xd7DMhzSAtcME= + 1PG8w/SCj1vIe36gZm7WwxICmqzVSJ95AyMWqB8k/Co= Modules/module.modulemap diff --git a/PreviewsSupport/PreviewsSupport/PreviewsSupport.swift b/PreviewsSupport/PreviewsSupport/PreviewsSupport.swift index d0b404c..7f19216 100644 --- a/PreviewsSupport/PreviewsSupport/PreviewsSupport.swift +++ b/PreviewsSupport/PreviewsSupport/PreviewsSupport.swift @@ -105,3 +105,24 @@ extension DefaultPreviewSource: MakeViewControllerProvider where A == UIViewCont } #endif + +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +public struct AnyViewModifier: ViewModifier where M.Context == Void { + private var modifier: M + + public init(_ modifier: M) { + self.modifier = modifier + } + + public func body(content: Content) -> some View { + content + .modifier(PreviewModifierViewModifier(modifier: modifier, context: ())) + } +} + +@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) +public enum PreviewModifierSupport { + public static func toViewModifier(modifier: A) -> AnyViewModifier where A.Context == Void { + return AnyViewModifier(modifier) + } +} diff --git a/PreviewsSupport/build.sh b/PreviewsSupport/build.sh index ad3fcd1..52c1fa3 100755 --- a/PreviewsSupport/build.sh +++ b/PreviewsSupport/build.sh @@ -91,10 +91,11 @@ xcodebuild archive \ SKIP_INSTALL=NO \ CLANG_CXX_LANGUAGE_STANDARD=c++17 - xcodebuild archive \ +xcodebuild archive \ -scheme PreviewsSupport \ -archivePath ./PreviewsSupport-macosx.xcarchive \ -sdk macosx \ + -destination 'generic/platform=macOS' \ BUILD_LIBRARY_FOR_DISTRIBUTION=YES \ INSTALL_PATH='Library/Frameworks' \ SKIP_INSTALL=NO \ diff --git a/PreviewsSupport/scripts/update_framework_interface.rb b/PreviewsSupport/scripts/update_framework_interface.rb index d0eae2b..2a21777 100644 --- a/PreviewsSupport/scripts/update_framework_interface.rb +++ b/PreviewsSupport/scripts/update_framework_interface.rb @@ -31,6 +31,19 @@ ") end end + + if !File.read(file_path).include?("PreviewModifierViewModifier") + File.open(file_path, 'a') do |file| + file.puts("@available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) + public struct PreviewModifierViewModifier where A : PreviewModifier { + public func body(content: SwiftUI._ViewModifier_Content>) -> some View + public init(modifier: A, context: A.Context) + } + @available(iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, *) + extension PreviewModifierViewModifier : SwiftUI.ViewModifier where A : SwiftUI.PreviewModifier { + }") + end + end end for file_path in uikit_interface