From 337fa490f1d80f7e3e7cd7ff9a58ad9967f18b12 Mon Sep 17 00:00:00 2001 From: Carson Katri Date: Wed, 23 Oct 2024 16:58:39 -0400 Subject: [PATCH] Add `fileImporter` support --- .../Coordinators/LiveViewCoordinator.swift | 2 +- .../Files/FileImporterModifier.swift | 127 ++++ Sources/LiveViewNative/ViewModel.swift | 8 + .../LiveViewNative/_GeneratedModifiers.swift | 632 +++++++++--------- Sources/LiveViewNative/__CoreExtensions.swift | 2 + .../ModifierGenerator/ModifierGenerator.swift | 1 + 6 files changed, 457 insertions(+), 315 deletions(-) create mode 100644 Sources/LiveViewNative/Stylesheets/Modifiers/Files/FileImporterModifier.swift diff --git a/Sources/LiveViewNative/Coordinators/LiveViewCoordinator.swift b/Sources/LiveViewNative/Coordinators/LiveViewCoordinator.swift index 8afc297d2..c34e4ec63 100644 --- a/Sources/LiveViewNative/Coordinators/LiveViewCoordinator.swift +++ b/Sources/LiveViewNative/Coordinators/LiveViewCoordinator.swift @@ -36,7 +36,7 @@ public class LiveViewCoordinator: ObservableObject { var url: URL - private weak var liveChannel: LiveViewNativeCore.LiveChannel? + private(set) var liveChannel: LiveViewNativeCore.LiveChannel? private weak var channel: LiveViewNativeCore.Channel? @Published var document: LiveViewNativeCore.Document? diff --git a/Sources/LiveViewNative/Stylesheets/Modifiers/Files/FileImporterModifier.swift b/Sources/LiveViewNative/Stylesheets/Modifiers/Files/FileImporterModifier.swift new file mode 100644 index 000000000..e0f142ce2 --- /dev/null +++ b/Sources/LiveViewNative/Stylesheets/Modifiers/Files/FileImporterModifier.swift @@ -0,0 +1,127 @@ +// +// FileImporterModifier.swift +// +// +// Created by Carson Katri on 10/23/24. +// + +import SwiftUI +import LiveViewNativeCore +import LiveViewNativeStylesheet +import UniformTypeIdentifiers +import OSLog + +private let logger = Logger(subsystem: "LiveViewNative", category: "_FileImporterModifier") + +/// See [`SwiftUI.View/fileImporter(isPresented:allowedContentTypes:allowsMultipleSelection:onCompletion:)`](https://developer.apple.com/documentation/swiftui/view/fileimporter(ispresented:allowedcontenttypes:allowsmultipleselection:oncompletion:)) for more details on this ViewModifier. +/// +/// ### fileImporter(isPresented:allowedContentTypes:allowsMultipleSelection:onCompletion:) +/// - `isPresented`: `attr("...")` (required) +/// - `allowedContentTypes`: `attr("...")` or list of ``UniformTypeIdentifiers/UTType`` (required) +/// - `allowsMultipleSelection`: `attr("...")` or ``Swift/Bool`` (required) +/// +/// See [`SwiftUI.View/fileImporter(isPresented:allowedContentTypes:allowsMultipleSelection:onCompletion:)`](https://developer.apple.com/documentation/swiftui/view/fileimporter(ispresented:allowedcontenttypes:allowsmultipleselection:oncompletion:)) for more details on this ViewModifier. +/// +/// Example: +/// +/// ```heex +/// <.live_file_input upload={@uploads.avatar} /> +/// ``` +@_documentation(visibility: public) +@ParseableExpression +struct _FileImporterModifier: ViewModifier { + static var name: String { "fileImporter" } + + @Environment(\.formModel) private var formModel + + private let id: AttributeReference + private let name: AttributeReference + @ChangeTracked private var isPresented: Bool + private let allowedContentTypes: AttributeReference + private let allowsMultipleSelection: AttributeReference + + @ObservedElement private var element + @LiveContext private var context + + @available(iOS 14.0, macOS 11.0, visionOS 1.0, *) + init( + id: AttributeReference, + name: AttributeReference, + isPresented: ChangeTracked, + allowedContentTypes: AttributeReference, + allowsMultipleSelection: AttributeReference + ) { + self.id = id + self.name = name + self._isPresented = isPresented + self.allowedContentTypes = allowedContentTypes + self.allowsMultipleSelection = allowsMultipleSelection + } + + func body(content: Content) -> some View { + #if os(iOS) || os(macOS) || os(visionOS) + content.fileImporter( + isPresented: $isPresented, + allowedContentTypes: allowedContentTypes.resolve(on: element, in: context).values, + allowsMultipleSelection: allowsMultipleSelection.resolve(on: element, in: context) + ) { result in + let id = id.resolve(on: element, in: context) + + guard let liveChannel = context.coordinator.liveChannel + else { return } + + do { + let files = try result.get().map({ url in + LiveFile( + try Data(contentsOf: url), + url.pathExtension, + url.deletingPathExtension().lastPathComponent, + id + ) + }) + Task { + do { + for file in files { + try await liveChannel.validateUpload(file) + } + } catch { + logger.log(level: .error, "\(error.localizedDescription)") + } + } + self.formModel?.fileUploads.append( + contentsOf: files.map({ file in + { + try await liveChannel.uploadFile(file) + print("upload complete") + } + }) + ) + } catch { + logger.log(level: .error, "\(error.localizedDescription)") + } + } + #else + content + #endif + } +} + +extension UTType: AttributeDecodable { + struct ResolvableSet: AttributeDecodable, ParseableModifierValue { + nonisolated let values: [UTType] + + init(values: [UTType]) { + self.values = values + } + + nonisolated init(from attribute: LiveViewNativeCore.Attribute?, on element: ElementNode) throws { + guard let value = attribute?.value + else { throw AttributeDecodingError.missingAttribute(Self.self) } + self.values = value.split(separator: ",").compactMap({ UTType(filenameExtension: String($0.dropFirst())) }) + } + + static func parser(in context: ParseableModifierContext) -> some Parser { + Array.parser(in: context).compactMap({ Self.init(values: $0.compactMap(UTType.init)) }) + } + } +} diff --git a/Sources/LiveViewNative/ViewModel.swift b/Sources/LiveViewNative/ViewModel.swift index 31106dc4f..635ad4dfd 100644 --- a/Sources/LiveViewNative/ViewModel.swift +++ b/Sources/LiveViewNative/ViewModel.swift @@ -59,11 +59,14 @@ public class FormModel: ObservableObject, CustomDebugStringConvertible { /// A publisher that emits a value before sending the form submission event. var formWillSubmit = PassthroughSubject<(), Never>() + var fileUploads: [() async throws -> ()] = [] + init(elementID: String) { self.elementID = elementID } @_spi(LiveForm) public func updateFromElement(_ element: ElementNode, submitAction: @escaping () -> ()) { + self.fileUploads.removeAll() let pushEventImpl = pushEventImpl! self.changeEvent = element.attributeValue(for: .init(name: "phx-change")).flatMap({ event in { value in @@ -95,6 +98,11 @@ public class FormModel: ObservableObject, CustomDebugStringConvertible { /// See ``LiveViewCoordinator/pushEvent(type:event:value:target:)`` for more information. public func sendSubmitEvent() async throws { formWillSubmit.send(()) + for fileUpload in fileUploads { + print("Upload...") + try await fileUpload() + } + print("All uploads done") if let submitEvent = submitEvent { try await pushFormEvent(submitEvent) } else if let submitAction { diff --git a/Sources/LiveViewNative/_GeneratedModifiers.swift b/Sources/LiveViewNative/_GeneratedModifiers.swift index 401111f90..85103e3f5 100644 --- a/Sources/LiveViewNative/_GeneratedModifiers.swift +++ b/Sources/LiveViewNative/_GeneratedModifiers.swift @@ -125,7 +125,7 @@ struct _accessibilityActionsModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 15.0,visionOS 2.0,iOS 18.0,tvOS 18.0,watchOS 11.0, *) + @available(visionOS 2.0,macOS 15.0,iOS 18.0,watchOS 11.0,tvOS 18.0, *) init(category: SwiftUI.AccessibilityActionCategory,content content: ViewReference=ViewReference(value: [])) { self.value = ._0(category: category, content: content) @@ -145,7 +145,7 @@ struct _accessibilityActionsModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(category, content): - if #available(macOS 15.0,visionOS 2.0,iOS 18.0,tvOS 18.0,watchOS 11.0, *) { + if #available(visionOS 2.0,macOS 15.0,iOS 18.0,watchOS 11.0,tvOS 18.0, *) { let category = category as! SwiftUI.AccessibilityActionCategory let content = content as! ViewReference @@ -681,7 +681,7 @@ struct _allowsWindowActivationEventsModifier: ViewModifier { #if os(iOS) || os(macOS) || os(visionOS) - @available(iOS 18.0,macOS 15.0,visionOS 2.0, *) + @available(visionOS 2.0,iOS 18.0,macOS 15.0, *) init(_ value: AttributeReference? = .init(storage: .constant(true)) ) { self.value = ._0(value: value) @@ -694,7 +694,7 @@ struct _allowsWindowActivationEventsModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(visionOS) case let ._0(value): - if #available(iOS 18.0,macOS 15.0,visionOS 2.0, *) { + if #available(visionOS 2.0,iOS 18.0,macOS 15.0, *) { let value = value as? AttributeReference __content @@ -868,7 +868,7 @@ struct _autocapitalizationModifier: ViewModifier { #if os(iOS) || os(tvOS) || os(visionOS) - @available(visionOS 1.0,iOS 16.0,tvOS 16.0, *) + @available(iOS 16.0,tvOS 16.0,visionOS 1.0, *) init(_ style: UIKit.UITextAutocapitalizationType) { self.value = ._0(style: style) @@ -881,7 +881,7 @@ struct _autocapitalizationModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(tvOS) || os(visionOS) case let ._0(style): - if #available(visionOS 1.0,iOS 16.0,tvOS 16.0, *) { + if #available(iOS 16.0,tvOS 16.0,visionOS 1.0, *) { let style = style as! UIKit.UITextAutocapitalizationType __content @@ -1232,28 +1232,28 @@ struct _badgeModifier: ViewModifier { #if os(iOS) || os(macOS) || os(visionOS) - @available(iOS 15.0,visionOS 1.0,macOS 12.0, *) + @available(visionOS 1.0,iOS 15.0,macOS 12.0, *) init(_ count: AttributeReference) { self.value = ._0(count: count) } #endif #if os(iOS) || os(macOS) || os(visionOS) - @available(iOS 15.0,visionOS 1.0,macOS 12.0, *) + @available(visionOS 1.0,iOS 15.0,macOS 12.0, *) init(_ label: TextReference?) { self.value = ._1(label: label) } #endif #if os(iOS) || os(macOS) || os(visionOS) - @available(iOS 15.0,visionOS 1.0,macOS 12.0, *) + @available(iOS 15.0,macOS 12.0,visionOS 1.0, *) init(_ key: SwiftUICore.LocalizedStringKey?) { self.value = ._2(key: key) } #endif #if os(iOS) || os(macOS) || os(visionOS) - @available(iOS 15.0,visionOS 1.0,macOS 12.0, *) + @available(iOS 15.0,macOS 12.0,visionOS 1.0, *) init(_ label: AttributeReference) { self.value = ._3(label: label) @@ -1266,7 +1266,7 @@ struct _badgeModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(visionOS) case let ._0(count): - if #available(iOS 15.0,visionOS 1.0,macOS 12.0, *) { + if #available(visionOS 1.0,iOS 15.0,macOS 12.0, *) { let count = count as! AttributeReference __content @@ -1277,7 +1277,7 @@ struct _badgeModifier: ViewModifier { #endif #if os(iOS) || os(macOS) || os(visionOS) case let ._1(label): - if #available(iOS 15.0,visionOS 1.0,macOS 12.0, *) { + if #available(visionOS 1.0,iOS 15.0,macOS 12.0, *) { let label = label as? TextReference __content._observeTextReference(label, on: element, in: context) { __content in __content @@ -1288,7 +1288,7 @@ struct _badgeModifier: ViewModifier { #endif #if os(iOS) || os(macOS) || os(visionOS) case let ._2(key): - if #available(iOS 15.0,visionOS 1.0,macOS 12.0, *) { + if #available(iOS 15.0,macOS 12.0,visionOS 1.0, *) { let key = key as? SwiftUICore.LocalizedStringKey __content @@ -1299,7 +1299,7 @@ struct _badgeModifier: ViewModifier { #endif #if os(iOS) || os(macOS) || os(visionOS) case let ._3(label): - if #available(iOS 15.0,visionOS 1.0,macOS 12.0, *) { + if #available(iOS 15.0,macOS 12.0,visionOS 1.0, *) { let label = label as! AttributeReference __content @@ -1333,7 +1333,7 @@ struct _badgeProminenceModifier: ViewModifier { #if os(iOS) || os(macOS) || os(visionOS) - @available(iOS 17.0,visionOS 1.0,macOS 14.0, *) + @available(visionOS 1.0,iOS 17.0,macOS 14.0, *) init(_ prominence: SwiftUI.BadgeProminence) { self.value = ._0(prominence: prominence) @@ -1346,7 +1346,7 @@ struct _badgeProminenceModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(visionOS) case let ._0(prominence): - if #available(iOS 17.0,visionOS 1.0,macOS 14.0, *) { + if #available(visionOS 1.0,iOS 17.0,macOS 14.0, *) { let prominence = prominence as! SwiftUI.BadgeProminence __content @@ -2134,14 +2134,14 @@ struct _containerRelativeFrameModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0,macOS 14.0, *) + @available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) init(_ axes: SwiftUICore.Axis.Set,alignment: AttributeReference = .init(storage: .constant(.center)) ) { self.value = ._0(axes: axes, alignment: alignment) } #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0,macOS 14.0, *) + @available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) init(_ axes: SwiftUICore.Axis.Set,count: AttributeReference,span: AttributeReference = .init(storage: .constant(1)), spacing: AttributeReference,alignment: AttributeReference = .init(storage: .constant(.center)) ) { self.value = ._1(axes: axes, count: count, span: span, spacing: spacing, alignment: alignment) @@ -2154,7 +2154,7 @@ struct _containerRelativeFrameModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(axes, alignment): - if #available(watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0,macOS 14.0, *) { + if #available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) { let axes = axes as! SwiftUICore.Axis.Set let alignment = alignment as! AttributeReference @@ -2166,7 +2166,7 @@ let alignment = alignment as! AttributeReference #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._1(axes, count, span, spacing, alignment): - if #available(watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0,macOS 14.0, *) { + if #available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) { let axes = axes as! SwiftUICore.Axis.Set let count = count as! AttributeReference let span = span as! AttributeReference @@ -2261,14 +2261,14 @@ struct _contentMarginsModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) + @available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) init(_ edges: SwiftUICore.Edge.Set = .all, _ insets: SwiftUICore.EdgeInsets,for placement: SwiftUI.ContentMarginPlacement = .automatic ) { self.value = ._0(edges: edges, insets: insets, placement: placement) } #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) + @available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) init(_ edges: SwiftUICore.Edge.Set = .all, _ length: AttributeReference?,for placement: SwiftUI.ContentMarginPlacement = .automatic ) { self.value = ._1(edges: edges, length: length, placement: placement) @@ -2288,7 +2288,7 @@ struct _contentMarginsModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(edges, insets, placement): - if #available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) { + if #available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) { let edges = edges as! SwiftUICore.Edge.Set let insets = insets as! SwiftUICore.EdgeInsets let placement = placement as! SwiftUI.ContentMarginPlacement @@ -2301,7 +2301,7 @@ let placement = placement as! SwiftUI.ContentMarginPlacement #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._1(edges, length, placement): - if #available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) { + if #available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) { let edges = edges as! SwiftUICore.Edge.Set let length = length as? AttributeReference let placement = placement as! SwiftUI.ContentMarginPlacement @@ -2478,7 +2478,7 @@ struct _contextMenuModifier: ViewModifier { } #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) - @available(iOS 16.0,tvOS 16.0,macOS 13.0,visionOS 1.0, *) + @available(tvOS 16.0,macOS 13.0,iOS 16.0,visionOS 1.0, *) init(menuItems: ViewReference=ViewReference(value: []),preview: ViewReference=ViewReference(value: [])) { self.value = ._1(menuItems: menuItems, preview: preview) @@ -2502,7 +2502,7 @@ struct _contextMenuModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) case let ._1(menuItems, preview): - if #available(iOS 16.0,tvOS 16.0,macOS 13.0,visionOS 1.0, *) { + if #available(tvOS 16.0,macOS 13.0,iOS 16.0,visionOS 1.0, *) { let menuItems = menuItems as! ViewReference let preview = preview as! ViewReference @@ -2584,7 +2584,7 @@ struct _controlGroupStyleModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) - @available(visionOS 1.0,iOS 15.0,tvOS 17.0,macOS 12.0, *) + @available(macOS 12.0,iOS 15.0,tvOS 17.0,visionOS 1.0, *) init(_ style: AnyControlGroupStyle) { self.value = ._0(style: style) @@ -2597,7 +2597,7 @@ struct _controlGroupStyleModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) case let ._0(style): - if #available(visionOS 1.0,iOS 15.0,tvOS 17.0,macOS 12.0, *) { + if #available(macOS 12.0,iOS 15.0,tvOS 17.0,visionOS 1.0, *) { let style = style as! AnyControlGroupStyle __content @@ -2631,7 +2631,7 @@ struct _controlSizeModifier: ViewModifier { #if os(iOS) || os(macOS) || os(visionOS) || os(watchOS) - @available(macOS 10.15,iOS 15.0,visionOS 1.0,watchOS 9.0, *) + @available(macOS 10.15,watchOS 9.0,iOS 15.0,visionOS 1.0, *) init(_ controlSize: SwiftUICore.ControlSize) { self.value = ._0(controlSize: controlSize) @@ -2644,7 +2644,7 @@ struct _controlSizeModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(visionOS) || os(watchOS) case let ._0(controlSize): - if #available(macOS 10.15,iOS 15.0,visionOS 1.0,watchOS 9.0, *) { + if #available(macOS 10.15,watchOS 9.0,iOS 15.0,visionOS 1.0, *) { let controlSize = controlSize as! SwiftUICore.ControlSize __content @@ -2690,7 +2690,7 @@ struct _coordinateSpaceModifier: ViewModifier { } #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 14.0,iOS 17.0,visionOS 1.0,watchOS 10.0,tvOS 17.0, *) + @available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) init(_ name: SwiftUICore.NamedCoordinateSpace) { self.value = ._1(name: name) @@ -2714,7 +2714,7 @@ struct _coordinateSpaceModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._1(name): - if #available(macOS 14.0,iOS 17.0,visionOS 1.0,watchOS 10.0,tvOS 17.0, *) { + if #available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) { let name = name as! SwiftUICore.NamedCoordinateSpace __content @@ -2795,7 +2795,7 @@ struct _datePickerStyleModifier: ViewModifier { #if os(iOS) || os(macOS) || os(visionOS) || os(watchOS) - @available(watchOS 10.0,iOS 13.0,visionOS 1.0,macOS 10.15, *) + @available(macOS 10.15,watchOS 10.0,iOS 13.0,visionOS 1.0, *) init(_ style: AnyDatePickerStyle) { self.value = ._0(style: style) @@ -2808,7 +2808,7 @@ struct _datePickerStyleModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(visionOS) || os(watchOS) case let ._0(style): - if #available(watchOS 10.0,iOS 13.0,visionOS 1.0,macOS 10.15, *) { + if #available(macOS 10.15,watchOS 10.0,iOS 13.0,visionOS 1.0, *) { let style = style as! AnyDatePickerStyle __content @@ -2889,7 +2889,7 @@ struct _defaultHoverEffectModifier: ViewModifier { #if os(iOS) || os(tvOS) || os(visionOS) - @available(iOS 17.0,visionOS 1.0,tvOS 17.0, *) + @available(iOS 17.0,tvOS 17.0,visionOS 1.0, *) init(_ effect: SwiftUI.HoverEffect?) { self.value = ._0(effect: effect) @@ -2902,7 +2902,7 @@ struct _defaultHoverEffectModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(tvOS) || os(visionOS) case let ._0(effect): - if #available(iOS 17.0,visionOS 1.0,tvOS 17.0, *) { + if #available(iOS 17.0,tvOS 17.0,visionOS 1.0, *) { let effect = effect as? SwiftUI.HoverEffect __content @@ -2941,14 +2941,14 @@ struct _defaultScrollAnchorModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 14.0,visionOS 1.0,iOS 17.0,tvOS 17.0,watchOS 10.0, *) + @available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) init(_ anchor: AttributeReference?) { self.value = ._0(anchor: anchor) } #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 15.0,visionOS 2.0,iOS 18.0,tvOS 18.0,watchOS 11.0, *) + @available(macOS 15.0,visionOS 2.0,tvOS 18.0,iOS 18.0,watchOS 11.0, *) init(_ anchor: AttributeReference?,for role: SwiftUI.ScrollAnchorRole) { self.value = ._1(anchor: anchor, role: role) @@ -2961,7 +2961,7 @@ struct _defaultScrollAnchorModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(anchor): - if #available(macOS 14.0,visionOS 1.0,iOS 17.0,tvOS 17.0,watchOS 10.0, *) { + if #available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) { let anchor = anchor as? AttributeReference __content @@ -2972,7 +2972,7 @@ struct _defaultScrollAnchorModifier: ViewModifier { #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._1(anchor, role): - if #available(macOS 15.0,visionOS 2.0,iOS 18.0,tvOS 18.0,watchOS 11.0, *) { + if #available(macOS 15.0,visionOS 2.0,tvOS 18.0,iOS 18.0,watchOS 11.0, *) { let anchor = anchor as? AttributeReference let role = role as! SwiftUI.ScrollAnchorRole @@ -3163,28 +3163,28 @@ struct _dialogSuppressionToggleModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 14.0,iOS 17.0,visionOS 1.0,watchOS 10.0,tvOS 17.0, *) + @available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) init(_ titleKey: SwiftUICore.LocalizedStringKey,isSuppressed: ChangeTracked) { self.value = ._0(titleKey: titleKey) self.__0_isSuppressed = isSuppressed } #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 14.0,iOS 17.0,visionOS 1.0,watchOS 10.0,tvOS 17.0, *) + @available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) init(_ title: AttributeReference,isSuppressed: ChangeTracked) { self.value = ._1(title: title) self.__1_isSuppressed = isSuppressed } #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(iOS 17.0,watchOS 10.0,tvOS 17.0,visionOS 1.0,macOS 14.0, *) + @available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) init(_ label: TextReference,isSuppressed: ChangeTracked) { self.value = ._2(label: label) self.__2_isSuppressed = isSuppressed } #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(iOS 17.0,watchOS 10.0,tvOS 17.0,visionOS 1.0,macOS 14.0, *) + @available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) init(isSuppressed: ChangeTracked) { self.value = ._3 self.__3_isSuppressed = isSuppressed @@ -3197,7 +3197,7 @@ struct _dialogSuppressionToggleModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(titleKey): - if #available(macOS 14.0,iOS 17.0,visionOS 1.0,watchOS 10.0,tvOS 17.0, *) { + if #available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) { let titleKey = titleKey as! SwiftUICore.LocalizedStringKey __content @@ -3208,7 +3208,7 @@ struct _dialogSuppressionToggleModifier: ViewModifier { #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._1(title): - if #available(macOS 14.0,iOS 17.0,visionOS 1.0,watchOS 10.0,tvOS 17.0, *) { + if #available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) { let title = title as! AttributeReference __content @@ -3219,7 +3219,7 @@ struct _dialogSuppressionToggleModifier: ViewModifier { #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._2(label): - if #available(iOS 17.0,watchOS 10.0,tvOS 17.0,visionOS 1.0,macOS 14.0, *) { + if #available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) { let label = label as! TextReference __content._observeTextReference(label, on: element, in: context) { __content in __content @@ -3230,7 +3230,7 @@ struct _dialogSuppressionToggleModifier: ViewModifier { #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case ._3: - if #available(iOS 17.0,watchOS 10.0,tvOS 17.0,visionOS 1.0,macOS 14.0, *) { + if #available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) { __content @@ -3816,7 +3816,7 @@ struct _fileDialogImportsUnresolvedAliasesModifier: ViewModifie #if os(iOS) || os(macOS) || os(visionOS) - @available(iOS 17.0,visionOS 1.0,macOS 14.0, *) + @available(visionOS 1.0,iOS 17.0,macOS 14.0, *) init(_ imports: AttributeReference) { self.value = ._0(imports: imports) @@ -3829,7 +3829,7 @@ struct _fileDialogImportsUnresolvedAliasesModifier: ViewModifie fatalError("unreachable") #if os(iOS) || os(macOS) || os(visionOS) case let ._0(imports): - if #available(iOS 17.0,visionOS 1.0,macOS 14.0, *) { + if #available(visionOS 1.0,iOS 17.0,macOS 14.0, *) { let imports = imports as! AttributeReference __content @@ -3863,7 +3863,7 @@ struct _findDisabledModifier: ViewModifier { #if os(iOS) || os(visionOS) - @available(iOS 16.0,visionOS 1.0, *) + @available(visionOS 1.0,iOS 16.0, *) init(_ isDisabled: AttributeReference = .init(storage: .constant(true)) ) { self.value = ._0(isDisabled: isDisabled) @@ -3876,7 +3876,7 @@ struct _findDisabledModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(visionOS) case let ._0(isDisabled): - if #available(iOS 16.0,visionOS 1.0, *) { + if #available(visionOS 1.0,iOS 16.0, *) { let isDisabled = isDisabled as! AttributeReference __content @@ -3910,7 +3910,7 @@ struct _findNavigatorModifier: ViewModifier { #if os(iOS) || os(visionOS) - @available(iOS 16.0,visionOS 1.0, *) + @available(visionOS 1.0,iOS 16.0, *) init(isPresented: ChangeTracked) { self.value = ._0 self.__0_isPresented = isPresented @@ -3923,7 +3923,7 @@ struct _findNavigatorModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(visionOS) case ._0: - if #available(iOS 16.0,visionOS 1.0, *) { + if #available(visionOS 1.0,iOS 16.0, *) { __content @@ -4074,7 +4074,7 @@ struct _focusEffectDisabledModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(visionOS 1.0,watchOS 10.0,iOS 17.0,tvOS 17.0,macOS 14.0, *) + @available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) init(_ disabled: AttributeReference = .init(storage: .constant(true)) ) { self.value = ._0(disabled: disabled) @@ -4087,7 +4087,7 @@ struct _focusEffectDisabledModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(disabled): - if #available(visionOS 1.0,watchOS 10.0,iOS 17.0,tvOS 17.0,macOS 14.0, *) { + if #available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) { let disabled = disabled as! AttributeReference __content @@ -4178,14 +4178,14 @@ struct _focusableModifier: ViewModifier { @Event private var _2_onFocusChange__1: Event.EventHandler #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(visionOS 1.0,watchOS 8.0,iOS 17.0,tvOS 15.0,macOS 12.0, *) + @available(macOS 12.0,watchOS 8.0,iOS 17.0,tvOS 15.0,visionOS 1.0, *) init(_ isFocusable: AttributeReference = .init(storage: .constant(true)) ) { self.value = ._0(isFocusable: isFocusable) } #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(visionOS 1.0,watchOS 10.0,iOS 17.0,tvOS 17.0,macOS 14.0, *) + @available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) init(_ isFocusable: AttributeReference = .init(storage: .constant(true)), interactions: SwiftUI.FocusInteractions) { self.value = ._1(isFocusable: isFocusable, interactions: interactions) @@ -4205,7 +4205,7 @@ struct _focusableModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(isFocusable): - if #available(visionOS 1.0,watchOS 8.0,iOS 17.0,tvOS 15.0,macOS 12.0, *) { + if #available(macOS 12.0,watchOS 8.0,iOS 17.0,tvOS 15.0,visionOS 1.0, *) { let isFocusable = isFocusable as! AttributeReference __content @@ -4216,7 +4216,7 @@ struct _focusableModifier: ViewModifier { #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._1(isFocusable, interactions): - if #available(visionOS 1.0,watchOS 10.0,iOS 17.0,tvOS 17.0,macOS 14.0, *) { + if #available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) { let isFocusable = isFocusable as! AttributeReference let interactions = interactions as! SwiftUI.FocusInteractions @@ -4499,7 +4499,7 @@ struct _fullScreenCoverModifier: ViewModifier { @Event private var _0_onDismiss__0: Event.EventHandler #if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(visionOS 1.0,iOS 14.0,watchOS 7.0,tvOS 14.0, *) + @available(watchOS 7.0,iOS 14.0,tvOS 14.0,visionOS 1.0, *) init(isPresented: ChangeTracked,onDismiss onDismiss__0: Event=Event(), content: ViewReference=ViewReference(value: [])) { self.value = ._0(content: content) self.__0_isPresented = isPresented @@ -4513,7 +4513,7 @@ self.__0_onDismiss__0 = onDismiss__0 fatalError("unreachable") #if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(content): - if #available(visionOS 1.0,iOS 14.0,watchOS 7.0,tvOS 14.0, *) { + if #available(watchOS 7.0,iOS 14.0,tvOS 14.0,visionOS 1.0, *) { let content = content as! ViewReference __content @@ -4547,7 +4547,7 @@ struct _gaugeStyleModifier: ViewModifier { #if os(iOS) || os(macOS) || os(visionOS) || os(watchOS) - @available(iOS 16.0,macOS 13.0,visionOS 1.0,watchOS 7.0, *) + @available(macOS 13.0,watchOS 7.0,iOS 16.0,visionOS 1.0, *) init(_ style: AnyGaugeStyle) { self.value = ._0(style: style) @@ -4560,7 +4560,7 @@ struct _gaugeStyleModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(visionOS) || os(watchOS) case let ._0(style): - if #available(iOS 16.0,macOS 13.0,visionOS 1.0,watchOS 7.0, *) { + if #available(macOS 13.0,watchOS 7.0,iOS 16.0,visionOS 1.0, *) { let style = style as! AnyGaugeStyle __content @@ -4594,7 +4594,7 @@ struct _geometryGroupModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) + @available(macOS 14.0,tvOS 17.0,iOS 17.0,watchOS 10.0,visionOS 1.0, *) init() { self.value = ._0 @@ -4607,7 +4607,7 @@ struct _geometryGroupModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case ._0: - if #available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) { + if #available(macOS 14.0,tvOS 17.0,iOS 17.0,watchOS 10.0,visionOS 1.0, *) { __content @@ -4665,7 +4665,7 @@ struct _gestureModifier: ViewModifier { } #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 15.0,watchOS 11.0,iOS 18.0,tvOS 18.0,visionOS 2.0, *) + @available(visionOS 2.0,iOS 18.0,tvOS 18.0,watchOS 11.0,macOS 15.0, *) init(_ gesture: _AnyGesture,name: AttributeReference,isEnabled: AttributeReference = .init(storage: .constant(true)) ) { self.value = ._2(gesture: gesture, name: name, isEnabled: isEnabled) @@ -4700,7 +4700,7 @@ struct _gestureModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._2(gesture, name, isEnabled): - if #available(macOS 15.0,watchOS 11.0,iOS 18.0,tvOS 18.0,visionOS 2.0, *) { + if #available(visionOS 2.0,iOS 18.0,tvOS 18.0,watchOS 11.0,macOS 15.0, *) { let gesture = gesture as! _AnyGesture let name = name as! AttributeReference let isEnabled = isEnabled as! AttributeReference @@ -5042,7 +5042,7 @@ struct _groupBoxStyleModifier: ViewModifier { #if os(iOS) || os(macOS) || os(visionOS) - @available(iOS 14.0,visionOS 1.0,macOS 11.0, *) + @available(iOS 14.0,macOS 11.0,visionOS 1.0, *) init(_ style: AnyGroupBoxStyle) { self.value = ._0(style: style) @@ -5055,7 +5055,7 @@ struct _groupBoxStyleModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(visionOS) case let ._0(style): - if #available(iOS 14.0,visionOS 1.0,macOS 11.0, *) { + if #available(iOS 14.0,macOS 11.0,visionOS 1.0, *) { let style = style as! AnyGroupBoxStyle __content @@ -5089,7 +5089,7 @@ struct _handGestureShortcutModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(watchOS) - @available(macOS 15.0,iOS 18.0,watchOS 11.0,tvOS 18.0, *) + @available(tvOS 18.0,macOS 15.0,iOS 18.0,watchOS 11.0, *) init(_ shortcut: SwiftUI.HandGestureShortcut,isEnabled: AttributeReference = .init(storage: .constant(true)) ) { self.value = ._0(shortcut: shortcut, isEnabled: isEnabled) @@ -5102,7 +5102,7 @@ struct _handGestureShortcutModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(watchOS) case let ._0(shortcut, isEnabled): - if #available(macOS 15.0,iOS 18.0,watchOS 11.0,tvOS 18.0, *) { + if #available(tvOS 18.0,macOS 15.0,iOS 18.0,watchOS 11.0, *) { let shortcut = shortcut as! SwiftUI.HandGestureShortcut let isEnabled = isEnabled as! AttributeReference @@ -5395,7 +5395,7 @@ struct _highPriorityGestureModifier: ViewModifier { } #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 15.0,watchOS 11.0,iOS 18.0,tvOS 18.0,visionOS 2.0, *) + @available(visionOS 2.0,iOS 18.0,tvOS 18.0,watchOS 11.0,macOS 15.0, *) init(_ gesture: _AnyGesture,name: AttributeReference,isEnabled: AttributeReference = .init(storage: .constant(true)) ) { self.value = ._2(gesture: gesture, name: name, isEnabled: isEnabled) @@ -5430,7 +5430,7 @@ struct _highPriorityGestureModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._2(gesture, name, isEnabled): - if #available(macOS 15.0,watchOS 11.0,iOS 18.0,tvOS 18.0,visionOS 2.0, *) { + if #available(visionOS 2.0,iOS 18.0,tvOS 18.0,watchOS 11.0,macOS 15.0, *) { let gesture = gesture as! _AnyGesture let name = name as! AttributeReference let isEnabled = isEnabled as! AttributeReference @@ -5518,14 +5518,14 @@ struct _hoverEffectModifier: ViewModifier { #if os(iOS) || os(tvOS) || os(visionOS) - @available(iOS 13.4,visionOS 1.0,tvOS 16.0, *) + @available(visionOS 1.0,iOS 13.4,tvOS 16.0, *) init(_ effect: SwiftUI.HoverEffect = .automatic ) { self.value = ._0(effect: effect) } #endif #if os(iOS) || os(tvOS) || os(visionOS) - @available(iOS 17.0,visionOS 1.0,tvOS 17.0, *) + @available(iOS 17.0,tvOS 17.0,visionOS 1.0, *) init(_ effect: SwiftUI.HoverEffect = .automatic, isEnabled: AttributeReference = .init(storage: .constant(true)) ) { self.value = ._1(effect: effect, isEnabled: isEnabled) @@ -5538,7 +5538,7 @@ struct _hoverEffectModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(tvOS) || os(visionOS) case let ._0(effect): - if #available(iOS 13.4,visionOS 1.0,tvOS 16.0, *) { + if #available(visionOS 1.0,iOS 13.4,tvOS 16.0, *) { let effect = effect as! SwiftUI.HoverEffect __content @@ -5549,7 +5549,7 @@ struct _hoverEffectModifier: ViewModifier { #endif #if os(iOS) || os(tvOS) || os(visionOS) case let ._1(effect, isEnabled): - if #available(iOS 17.0,visionOS 1.0,tvOS 17.0, *) { + if #available(iOS 17.0,tvOS 17.0,visionOS 1.0, *) { let effect = effect as! SwiftUI.HoverEffect let isEnabled = isEnabled as! AttributeReference @@ -5584,7 +5584,7 @@ struct _hoverEffectDisabledModifier: ViewModifier { #if os(iOS) || os(tvOS) || os(visionOS) - @available(iOS 17.0,visionOS 1.0,tvOS 17.0, *) + @available(tvOS 17.0,visionOS 1.0,iOS 17.0, *) init(_ disabled: AttributeReference = .init(storage: .constant(true)) ) { self.value = ._0(disabled: disabled) @@ -5597,7 +5597,7 @@ struct _hoverEffectDisabledModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(tvOS) || os(visionOS) case let ._0(disabled): - if #available(iOS 17.0,visionOS 1.0,tvOS 17.0, *) { + if #available(tvOS 17.0,visionOS 1.0,iOS 17.0, *) { let disabled = disabled as! AttributeReference __content @@ -6174,7 +6174,7 @@ struct _invalidatableContentModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 14.0,watchOS 10.0,visionOS 1.0,iOS 17.0,tvOS 17.0, *) + @available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) init(_ invalidatable: AttributeReference = .init(storage: .constant(true)) ) { self.value = ._0(invalidatable: invalidatable) @@ -6187,7 +6187,7 @@ struct _invalidatableContentModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(invalidatable): - if #available(macOS 14.0,watchOS 10.0,visionOS 1.0,iOS 17.0,tvOS 17.0, *) { + if #available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) { let invalidatable = invalidatable as! AttributeReference __content @@ -6236,28 +6236,28 @@ struct _keyboardShortcutModifier: ViewModifier { #if os(iOS) || os(macOS) || os(visionOS) - @available(iOS 14.0,macOS 11.0,visionOS 1.0, *) + @available(visionOS 1.0,iOS 14.0,macOS 11.0, *) init(_ key: SwiftUI.KeyEquivalent,modifiers: SwiftUICore.EventModifiers = .command ) { self.value = ._0(key: key, modifiers: modifiers) } #endif #if os(iOS) || os(macOS) || os(visionOS) - @available(iOS 14.0,macOS 11.0,visionOS 1.0, *) + @available(visionOS 1.0,iOS 14.0,macOS 11.0, *) init(_ shortcut: SwiftUI.KeyboardShortcut) { self.value = ._1(shortcut: shortcut) } #endif #if os(iOS) || os(macOS) || os(visionOS) - @available(visionOS 1.0,iOS 15.4,macOS 12.3, *) + @available(iOS 15.4,macOS 12.3,visionOS 1.0, *) init(_ shortcut: SwiftUI.KeyboardShortcut?) { self.value = ._2(shortcut: shortcut) } #endif #if os(iOS) || os(macOS) || os(visionOS) - @available(visionOS 1.0,iOS 15.0,macOS 12.0, *) + @available(iOS 15.0,macOS 12.0,visionOS 1.0, *) init(_ key: SwiftUI.KeyEquivalent,modifiers: SwiftUICore.EventModifiers = .command, localization: SwiftUI.KeyboardShortcut.Localization) { self.value = ._3(key: key, modifiers: modifiers, localization: localization) @@ -6270,7 +6270,7 @@ struct _keyboardShortcutModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(visionOS) case let ._0(key, modifiers): - if #available(iOS 14.0,macOS 11.0,visionOS 1.0, *) { + if #available(visionOS 1.0,iOS 14.0,macOS 11.0, *) { let key = key as! SwiftUI.KeyEquivalent let modifiers = modifiers as! SwiftUICore.EventModifiers @@ -6282,7 +6282,7 @@ let modifiers = modifiers as! SwiftUICore.EventModifiers #endif #if os(iOS) || os(macOS) || os(visionOS) case let ._1(shortcut): - if #available(iOS 14.0,macOS 11.0,visionOS 1.0, *) { + if #available(visionOS 1.0,iOS 14.0,macOS 11.0, *) { let shortcut = shortcut as! SwiftUI.KeyboardShortcut __content @@ -6293,7 +6293,7 @@ let modifiers = modifiers as! SwiftUICore.EventModifiers #endif #if os(iOS) || os(macOS) || os(visionOS) case let ._2(shortcut): - if #available(visionOS 1.0,iOS 15.4,macOS 12.3, *) { + if #available(iOS 15.4,macOS 12.3,visionOS 1.0, *) { let shortcut = shortcut as? SwiftUI.KeyboardShortcut __content @@ -6304,7 +6304,7 @@ let modifiers = modifiers as! SwiftUICore.EventModifiers #endif #if os(iOS) || os(macOS) || os(visionOS) case let ._3(key, modifiers, localization): - if #available(visionOS 1.0,iOS 15.0,macOS 12.0, *) { + if #available(iOS 15.0,macOS 12.0,visionOS 1.0, *) { let key = key as! SwiftUI.KeyEquivalent let modifiers = modifiers as! SwiftUICore.EventModifiers let localization = localization as! SwiftUI.KeyboardShortcut.Localization @@ -6340,7 +6340,7 @@ struct _keyboardTypeModifier: ViewModifier { #if os(iOS) || os(tvOS) || os(visionOS) - @available(iOS 13.0,visionOS 1.0,tvOS 13.0, *) + @available(tvOS 13.0,visionOS 1.0,iOS 13.0, *) init(_ type: UIKit.UIKeyboardType) { self.value = ._0(type: type) @@ -6353,7 +6353,7 @@ struct _keyboardTypeModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(tvOS) || os(visionOS) case let ._0(type): - if #available(iOS 13.0,visionOS 1.0,tvOS 13.0, *) { + if #available(tvOS 13.0,visionOS 1.0,iOS 13.0, *) { let type = type as! UIKit.UIKeyboardType __content @@ -6528,7 +6528,7 @@ struct _labelsVisibilityModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 15.0,iOS 18.0,visionOS 2.0,watchOS 11.0,tvOS 18.0, *) + @available(visionOS 2.0,iOS 18.0,tvOS 18.0,watchOS 11.0,macOS 15.0, *) init(_ visibility: AttributeReference) { self.value = ._0(visibility: visibility) @@ -6541,7 +6541,7 @@ struct _labelsVisibilityModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(visibility): - if #available(macOS 15.0,iOS 18.0,visionOS 2.0,watchOS 11.0,tvOS 18.0, *) { + if #available(visionOS 2.0,iOS 18.0,tvOS 18.0,watchOS 11.0,macOS 15.0, *) { let visibility = visibility as! AttributeReference __content @@ -7357,14 +7357,14 @@ struct _listSectionSpacingModifier: ViewModifier { #if os(iOS) || os(visionOS) || os(watchOS) - @available(iOS 17.0,watchOS 10.0,visionOS 1.0, *) + @available(visionOS 1.0,iOS 17.0,watchOS 10.0, *) init(_ spacing: SwiftUI.ListSectionSpacing) { self.value = ._0(spacing: spacing) } #endif #if os(iOS) || os(visionOS) || os(watchOS) - @available(iOS 17.0,watchOS 10.0,visionOS 1.0, *) + @available(visionOS 1.0,iOS 17.0,watchOS 10.0, *) init(_ spacing: AttributeReference) { self.value = ._1(spacing: spacing) @@ -7377,7 +7377,7 @@ struct _listSectionSpacingModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(visionOS) || os(watchOS) case let ._0(spacing): - if #available(iOS 17.0,watchOS 10.0,visionOS 1.0, *) { + if #available(visionOS 1.0,iOS 17.0,watchOS 10.0, *) { let spacing = spacing as! SwiftUI.ListSectionSpacing __content @@ -7388,7 +7388,7 @@ struct _listSectionSpacingModifier: ViewModifier { #endif #if os(iOS) || os(visionOS) || os(watchOS) case let ._1(spacing): - if #available(iOS 17.0,watchOS 10.0,visionOS 1.0, *) { + if #available(visionOS 1.0,iOS 17.0,watchOS 10.0, *) { let spacing = spacing as! AttributeReference __content @@ -7516,7 +7516,7 @@ struct _materialActiveAppearanceModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(visionOS 2.0,watchOS 11.0,iOS 18.0,tvOS 18.0,macOS 15.0, *) + @available(macOS 15.0,watchOS 11.0,iOS 18.0,tvOS 18.0,visionOS 2.0, *) init(_ appearance: SwiftUICore.MaterialActiveAppearance) { self.value = ._0(appearance: appearance) @@ -7529,7 +7529,7 @@ struct _materialActiveAppearanceModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(appearance): - if #available(visionOS 2.0,watchOS 11.0,iOS 18.0,tvOS 18.0,macOS 15.0, *) { + if #available(macOS 15.0,watchOS 11.0,iOS 18.0,tvOS 18.0,visionOS 2.0, *) { let appearance = appearance as! SwiftUICore.MaterialActiveAppearance __content @@ -7563,7 +7563,7 @@ struct _menuIndicatorModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) - @available(tvOS 17.0,iOS 15.0,macOS 12.0,visionOS 1.0, *) + @available(iOS 15.0,macOS 12.0,tvOS 17.0,visionOS 1.0, *) init(_ visibility: AttributeReference) { self.value = ._0(visibility: visibility) @@ -7576,7 +7576,7 @@ struct _menuIndicatorModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) case let ._0(visibility): - if #available(tvOS 17.0,iOS 15.0,macOS 12.0,visionOS 1.0, *) { + if #available(iOS 15.0,macOS 12.0,tvOS 17.0,visionOS 1.0, *) { let visibility = visibility as! AttributeReference __content @@ -7657,7 +7657,7 @@ struct _menuStyleModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) - @available(iOS 14.0,tvOS 17.0,visionOS 1.0,macOS 11.0, *) + @available(macOS 11.0,tvOS 17.0,visionOS 1.0,iOS 14.0, *) init(_ style: AnyMenuStyle) { self.value = ._0(style: style) @@ -7670,7 +7670,7 @@ struct _menuStyleModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) case let ._0(style): - if #available(iOS 14.0,tvOS 17.0,visionOS 1.0,macOS 11.0, *) { + if #available(macOS 11.0,tvOS 17.0,visionOS 1.0,iOS 14.0, *) { let style = style as! AnyMenuStyle __content @@ -7751,7 +7751,7 @@ struct _modifierKeyAlternateModifier: ViewModifier { #if os(macOS) || os(visionOS) - @available(visionOS 1.0,macOS 15.0, *) + @available(macOS 15.0,visionOS 1.0, *) init(_ modifiers: SwiftUICore.EventModifiers,_ alternate: ViewReference=ViewReference(value: [])) { self.value = ._0(modifiers: modifiers, alternate: alternate) @@ -7764,7 +7764,7 @@ struct _modifierKeyAlternateModifier: ViewModifier { fatalError("unreachable") #if os(macOS) || os(visionOS) case let ._0(modifiers, alternate): - if #available(visionOS 1.0,macOS 15.0, *) { + if #available(macOS 15.0,visionOS 1.0, *) { let modifiers = modifiers as! SwiftUICore.EventModifiers let alternate = alternate as! ViewReference @@ -7940,7 +7940,7 @@ struct _navigationBarHiddenModifier: ViewModifier { #if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 13.0,iOS 13.0,visionOS 1.0,watchOS 6.0,tvOS 13.0, *) + @available(tvOS 13.0,macOS 13.0,iOS 13.0,watchOS 6.0,visionOS 1.0, *) init(_ hidden: AttributeReference) { self.value = ._0(hidden: hidden) @@ -7953,7 +7953,7 @@ struct _navigationBarHiddenModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(hidden): - if #available(macOS 13.0,iOS 13.0,visionOS 1.0,watchOS 6.0,tvOS 13.0, *) { + if #available(tvOS 13.0,macOS 13.0,iOS 13.0,watchOS 6.0,visionOS 1.0, *) { let hidden = hidden as! AttributeReference __content @@ -7997,14 +7997,14 @@ struct _navigationBarItemsModifier: ViewModifier { #if os(iOS) || os(tvOS) || os(visionOS) - @available(iOS 16.0,tvOS 16.0,visionOS 1.0, *) + @available(visionOS 1.0,iOS 16.0,tvOS 16.0, *) init(leading: InlineViewReference,trailing: InlineViewReference) { self.value = ._0(leading: leading, trailing: trailing) } #endif #if os(iOS) || os(tvOS) || os(visionOS) - @available(iOS 16.0,tvOS 16.0,visionOS 1.0, *) + @available(visionOS 1.0,iOS 16.0,tvOS 16.0, *) init(leading: InlineViewReference) { self.value = ._1(leading: leading) @@ -8024,7 +8024,7 @@ struct _navigationBarItemsModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(tvOS) || os(visionOS) case let ._0(leading, trailing): - if #available(iOS 16.0,tvOS 16.0,visionOS 1.0, *) { + if #available(visionOS 1.0,iOS 16.0,tvOS 16.0, *) { let leading = leading as! InlineViewReference let trailing = trailing as! InlineViewReference @@ -8036,7 +8036,7 @@ let trailing = trailing as! InlineViewReference #endif #if os(iOS) || os(tvOS) || os(visionOS) case let ._1(leading): - if #available(iOS 16.0,tvOS 16.0,visionOS 1.0, *) { + if #available(visionOS 1.0,iOS 16.0,tvOS 16.0, *) { let leading = leading as! InlineViewReference __content @@ -8106,42 +8106,42 @@ struct _navigationBarTitleModifier: ViewModifier { #if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 13.0,iOS 13.0,visionOS 1.0,watchOS 6.0,tvOS 13.0, *) + @available(tvOS 13.0,macOS 13.0,iOS 13.0,watchOS 6.0,visionOS 1.0, *) init(_ title: TextReference) { self.value = ._0(title: title) } #endif #if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 13.0,iOS 13.0,visionOS 1.0,watchOS 6.0,tvOS 13.0, *) + @available(tvOS 13.0,macOS 13.0,iOS 13.0,watchOS 6.0,visionOS 1.0, *) init(_ titleKey: SwiftUICore.LocalizedStringKey) { self.value = ._1(titleKey: titleKey) } #endif #if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 13.0,iOS 13.0,visionOS 1.0,watchOS 6.0,tvOS 13.0, *) + @available(tvOS 13.0,macOS 13.0,visionOS 1.0,iOS 13.0,watchOS 6.0, *) init(_ title: AttributeReference) { self.value = ._2(title: title) } #endif #if os(iOS) || os(visionOS) - @available(macOS 13.0,iOS 13.0,visionOS 1.0,watchOS 6.0,tvOS 13.0, *) + @available(tvOS 13.0,macOS 13.0,visionOS 1.0,iOS 13.0,watchOS 6.0, *) init(_ title: TextReference,displayMode: SwiftUI.NavigationBarItem.TitleDisplayMode) { self.value = ._3(title: title, displayMode: displayMode) } #endif #if os(iOS) || os(visionOS) - @available(macOS 13.0,iOS 13.0,visionOS 1.0,watchOS 6.0,tvOS 13.0, *) + @available(macOS 13.0,watchOS 6.0,iOS 13.0,tvOS 13.0,visionOS 1.0, *) init(_ titleKey: SwiftUICore.LocalizedStringKey,displayMode: SwiftUI.NavigationBarItem.TitleDisplayMode) { self.value = ._4(titleKey: titleKey, displayMode: displayMode) } #endif #if os(iOS) || os(visionOS) - @available(macOS 13.0,iOS 13.0,visionOS 1.0,watchOS 6.0,tvOS 13.0, *) + @available(tvOS 13.0,iOS 13.0,watchOS 6.0,macOS 13.0,visionOS 1.0, *) init(_ title: AttributeReference,displayMode: SwiftUI.NavigationBarItem.TitleDisplayMode) { self.value = ._5(title: title, displayMode: displayMode) @@ -8154,7 +8154,7 @@ struct _navigationBarTitleModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(title): - if #available(macOS 13.0,iOS 13.0,visionOS 1.0,watchOS 6.0,tvOS 13.0, *) { + if #available(tvOS 13.0,macOS 13.0,iOS 13.0,watchOS 6.0,visionOS 1.0, *) { let title = title as! TextReference __content._observeTextReference(title, on: element, in: context) { __content in __content @@ -8165,7 +8165,7 @@ struct _navigationBarTitleModifier: ViewModifier { #endif #if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._1(titleKey): - if #available(macOS 13.0,iOS 13.0,visionOS 1.0,watchOS 6.0,tvOS 13.0, *) { + if #available(tvOS 13.0,macOS 13.0,iOS 13.0,watchOS 6.0,visionOS 1.0, *) { let titleKey = titleKey as! SwiftUICore.LocalizedStringKey __content @@ -8176,7 +8176,7 @@ struct _navigationBarTitleModifier: ViewModifier { #endif #if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._2(title): - if #available(macOS 13.0,iOS 13.0,visionOS 1.0,watchOS 6.0,tvOS 13.0, *) { + if #available(tvOS 13.0,macOS 13.0,visionOS 1.0,iOS 13.0,watchOS 6.0, *) { let title = title as! AttributeReference __content @@ -8187,7 +8187,7 @@ struct _navigationBarTitleModifier: ViewModifier { #endif #if os(iOS) || os(visionOS) case let ._3(title, displayMode): - if #available(macOS 13.0,iOS 13.0,visionOS 1.0,watchOS 6.0,tvOS 13.0, *) { + if #available(tvOS 13.0,macOS 13.0,visionOS 1.0,iOS 13.0,watchOS 6.0, *) { let title = title as! TextReference let displayMode = displayMode as! SwiftUI.NavigationBarItem.TitleDisplayMode __content._observeTextReference(title, on: element, in: context) { __content in @@ -8199,7 +8199,7 @@ let displayMode = displayMode as! SwiftUI.NavigationBarItem.TitleDisplayMode #endif #if os(iOS) || os(visionOS) case let ._4(titleKey, displayMode): - if #available(macOS 13.0,iOS 13.0,visionOS 1.0,watchOS 6.0,tvOS 13.0, *) { + if #available(macOS 13.0,watchOS 6.0,iOS 13.0,tvOS 13.0,visionOS 1.0, *) { let titleKey = titleKey as! SwiftUICore.LocalizedStringKey let displayMode = displayMode as! SwiftUI.NavigationBarItem.TitleDisplayMode @@ -8211,7 +8211,7 @@ let displayMode = displayMode as! SwiftUI.NavigationBarItem.TitleDisplayMode #endif #if os(iOS) || os(visionOS) case let ._5(title, displayMode): - if #available(macOS 13.0,iOS 13.0,visionOS 1.0,watchOS 6.0,tvOS 13.0, *) { + if #available(tvOS 13.0,iOS 13.0,watchOS 6.0,macOS 13.0,visionOS 1.0, *) { let title = title as! AttributeReference let displayMode = displayMode as! SwiftUI.NavigationBarItem.TitleDisplayMode @@ -8246,7 +8246,7 @@ struct _navigationBarTitleDisplayModeModifier: ViewModifier { #if os(iOS) || os(visionOS) || os(watchOS) - @available(iOS 14.0,watchOS 8.0,visionOS 1.0, *) + @available(visionOS 1.0,iOS 14.0,watchOS 8.0, *) init(_ displayMode: SwiftUI.NavigationBarItem.TitleDisplayMode) { self.value = ._0(displayMode: displayMode) @@ -8259,7 +8259,7 @@ struct _navigationBarTitleDisplayModeModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(visionOS) || os(watchOS) case let ._0(displayMode): - if #available(iOS 14.0,watchOS 8.0,visionOS 1.0, *) { + if #available(visionOS 1.0,iOS 14.0,watchOS 8.0, *) { let displayMode = displayMode as! SwiftUI.NavigationBarItem.TitleDisplayMode __content @@ -8467,21 +8467,21 @@ struct _navigationSubtitleModifier: ViewModifier { #if os(macOS) || targetEnvironment(macCatalyst) - @available(macCatalyst 14.0,macOS 11.0, *) + @available(macOS 11.0,macCatalyst 14.0, *) init(_ subtitle: TextReference) { self.value = ._0(subtitle: subtitle) } #endif #if os(macOS) || targetEnvironment(macCatalyst) - @available(macCatalyst 14.0,macOS 11.0, *) + @available(macOS 11.0,macCatalyst 14.0, *) init(_ subtitleKey: SwiftUICore.LocalizedStringKey) { self.value = ._1(subtitleKey: subtitleKey) } #endif #if os(macOS) || targetEnvironment(macCatalyst) - @available(macCatalyst 14.0,macOS 11.0, *) + @available(macOS 11.0,macCatalyst 14.0, *) init(_ subtitle: AttributeReference) { self.value = ._2(subtitle: subtitle) @@ -8494,7 +8494,7 @@ struct _navigationSubtitleModifier: ViewModifier { fatalError("unreachable") #if os(macOS) || targetEnvironment(macCatalyst) case let ._0(subtitle): - if #available(macCatalyst 14.0,macOS 11.0, *) { + if #available(macOS 11.0,macCatalyst 14.0, *) { let subtitle = subtitle as! TextReference __content._observeTextReference(subtitle, on: element, in: context) { __content in __content @@ -8505,7 +8505,7 @@ struct _navigationSubtitleModifier: ViewModifier { #endif #if os(macOS) || targetEnvironment(macCatalyst) case let ._1(subtitleKey): - if #available(macCatalyst 14.0,macOS 11.0, *) { + if #available(macOS 11.0,macCatalyst 14.0, *) { let subtitleKey = subtitleKey as! SwiftUICore.LocalizedStringKey __content @@ -8516,7 +8516,7 @@ struct _navigationSubtitleModifier: ViewModifier { #endif #if os(macOS) || targetEnvironment(macCatalyst) case let ._2(subtitle): - if #available(macCatalyst 14.0,macOS 11.0, *) { + if #available(macOS 11.0,macCatalyst 14.0, *) { let subtitle = subtitle as! AttributeReference __content @@ -8591,7 +8591,7 @@ struct _navigationTitleModifier: ViewModifier { } #if os(watchOS) - @available(tvOS 14.0,watchOS 7.0,macOS 11.0,iOS 14.0, *) + @available(iOS 14.0,watchOS 7.0,macOS 11.0,tvOS 14.0, *) init(_ title: ViewReference=ViewReference(value: [])) { self.value = ._3(title: title) @@ -8644,7 +8644,7 @@ struct _navigationTitleModifier: ViewModifier { #if os(watchOS) case let ._3(title): - if #available(tvOS 14.0,watchOS 7.0,macOS 11.0,iOS 14.0, *) { + if #available(iOS 14.0,watchOS 7.0,macOS 11.0,tvOS 14.0, *) { let title = title as! ViewReference __content @@ -8829,7 +8829,7 @@ struct _onDeleteCommandModifier: ViewModifier { @Event private var _0_action__0: Event.EventHandler #if os(macOS) - @available(macOS 10.15,tvOS 13.0, *) + @available(tvOS 13.0,macOS 10.15, *) init(perform action__0: Event=Event()) { self.value = ._0 self.__0_action__0 = action__0 @@ -8842,7 +8842,7 @@ struct _onDeleteCommandModifier: ViewModifier { fatalError("unreachable") #if os(macOS) case ._0: - if #available(macOS 10.15,tvOS 13.0, *) { + if #available(tvOS 13.0,macOS 10.15, *) { __content @@ -8923,7 +8923,7 @@ struct _onExitCommandModifier: ViewModifier { @Event private var _0_action__0: Event.EventHandler #if os(macOS) || os(tvOS) - @available(macOS 10.15,tvOS 13.0, *) + @available(tvOS 13.0,macOS 10.15, *) init(perform action__0: Event=Event()) { self.value = ._0 self.__0_action__0 = action__0 @@ -8936,7 +8936,7 @@ struct _onExitCommandModifier: ViewModifier { fatalError("unreachable") #if os(macOS) || os(tvOS) case ._0: - if #available(macOS 10.15,tvOS 13.0, *) { + if #available(tvOS 13.0,macOS 10.15, *) { __content @@ -9083,7 +9083,7 @@ struct _onLongPressGestureModifier: ViewModifier { @Event private var _3_action__0: Event.EventHandler #if os(iOS) || os(macOS) || os(visionOS) || os(watchOS) - @available(watchOS 6.0,macOS 10.15,iOS 13.0,tvOS 14.0,visionOS 1.0, *) + @available(watchOS 6.0,tvOS 14.0,visionOS 1.0,macOS 10.15,iOS 13.0, *) init(minimumDuration: AttributeReference = .init(storage: .constant(0.5)), maximumDistance: AttributeReference = .init(storage: .constant(10)), perform action__0: Event,onPressingChanged onPressingChanged__1: Event=Event() ) { self.value = ._0(minimumDuration: minimumDuration, maximumDistance: maximumDistance) self.__0_action__0 = action__0 @@ -9091,7 +9091,7 @@ self.__0_onPressingChanged__1 = onPressingChanged__1 } #endif #if os(tvOS) - @available(watchOS 6.0,macOS 10.15,iOS 13.0,tvOS 14.0, *) + @available(macOS 10.15,watchOS 6.0,iOS 13.0,tvOS 14.0, *) init(minimumDuration: AttributeReference = .init(storage: .constant(0.5)), perform action__0: Event,onPressingChanged onPressingChanged__1: Event=Event() ) { self.value = ._1(minimumDuration: minimumDuration) self.__1_action__0 = action__0 @@ -9099,7 +9099,7 @@ self.__1_onPressingChanged__1 = onPressingChanged__1 } #endif #if os(iOS) || os(macOS) || os(visionOS) || os(watchOS) - @available(macOS 10.15,iOS 13.0,tvOS 14.0,visionOS 1.0,watchOS 6.0, *) + @available(macOS 10.15,watchOS 6.0,iOS 13.0,tvOS 14.0,visionOS 1.0, *) init(minimumDuration: AttributeReference = .init(storage: .constant(0.5)), maximumDistance: AttributeReference = .init(storage: .constant(10)), pressing pressing__1: Event=Event(), perform action__0: Event) { self.value = ._2(minimumDuration: minimumDuration, maximumDistance: maximumDistance) self.__2_pressing__1 = pressing__1 @@ -9107,7 +9107,7 @@ self.__2_action__0 = action__0 } #endif #if os(tvOS) - @available(macOS 10.15,iOS 13.0,tvOS 14.0,watchOS 6.0, *) + @available(macOS 10.15,watchOS 6.0,iOS 13.0,tvOS 14.0, *) init(minimumDuration: AttributeReference = .init(storage: .constant(0.5)), pressing pressing__1: Event=Event(), perform action__0: Event) { self.value = ._3(minimumDuration: minimumDuration) self.__3_pressing__1 = pressing__1 @@ -9121,7 +9121,7 @@ self.__3_action__0 = action__0 fatalError("unreachable") #if os(iOS) || os(macOS) || os(visionOS) || os(watchOS) case let ._0(minimumDuration, maximumDistance): - if #available(watchOS 6.0,macOS 10.15,iOS 13.0,tvOS 14.0,visionOS 1.0, *) { + if #available(watchOS 6.0,tvOS 14.0,visionOS 1.0,macOS 10.15,iOS 13.0, *) { let minimumDuration = minimumDuration as! AttributeReference let maximumDistance = maximumDistance as! AttributeReference @@ -9133,7 +9133,7 @@ let maximumDistance = maximumDistance as! AttributeReference __content @@ -9144,7 +9144,7 @@ let maximumDistance = maximumDistance as! AttributeReference let maximumDistance = maximumDistance as! AttributeReference @@ -9156,7 +9156,7 @@ let maximumDistance = maximumDistance as! AttributeReference __content @@ -9287,7 +9287,7 @@ struct _onMoveCommandModifier: ViewModifier { @Event private var _0_action__1: Event.EventHandler #if os(macOS) || os(tvOS) - @available(macOS 10.15,tvOS 13.0, *) + @available(tvOS 13.0,macOS 10.15, *) init(perform action__1: Event=Event()) { self.value = ._0 self.__0_action__1 = action__1 @@ -9300,7 +9300,7 @@ struct _onMoveCommandModifier: ViewModifier { fatalError("unreachable") #if os(macOS) || os(tvOS) case ._0: - if #available(macOS 10.15,tvOS 13.0, *) { + if #available(tvOS 13.0,macOS 10.15, *) { __content @@ -9428,7 +9428,7 @@ struct _onPlayPauseCommandModifier: ViewModifier { @Event private var _0_action__0: Event.EventHandler #if os(tvOS) - @available(macOS 10.15,tvOS 13.0, *) + @available(tvOS 13.0,macOS 10.15, *) init(perform action__0: Event=Event()) { self.value = ._0 self.__0_action__0 = action__0 @@ -9441,7 +9441,7 @@ struct _onPlayPauseCommandModifier: ViewModifier { fatalError("unreachable") #if os(tvOS) case ._0: - if #available(macOS 10.15,tvOS 13.0, *) { + if #available(tvOS 13.0,macOS 10.15, *) { __content @@ -9475,7 +9475,7 @@ struct _onScrollPhaseChangeModifier: ViewModifier { @Event private var _0_action__2: Event.EventHandler #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 15.0,iOS 18.0,visionOS 2.0,watchOS 11.0,tvOS 18.0, *) + @available(visionOS 2.0,tvOS 18.0,macOS 15.0,watchOS 11.0,iOS 18.0, *) init(_ action__2: Event) { self.value = ._0 self.__0_action__2 = action__2 @@ -9488,7 +9488,7 @@ struct _onScrollPhaseChangeModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case ._0: - if #available(macOS 15.0,iOS 18.0,visionOS 2.0,watchOS 11.0,tvOS 18.0, *) { + if #available(visionOS 2.0,tvOS 18.0,macOS 15.0,watchOS 11.0,iOS 18.0, *) { __content @@ -9522,7 +9522,7 @@ struct _onScrollVisibilityChangeModifier: ViewModifier { @Event private var _0_action__1: Event.EventHandler #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 15.0,visionOS 2.0,iOS 18.0,tvOS 18.0,watchOS 11.0, *) + @available(tvOS 18.0,macOS 15.0,iOS 18.0,watchOS 11.0,visionOS 2.0, *) init(threshold: AttributeReference = .init(storage: .constant(0.5)), action action__1: Event) { self.value = ._0(threshold: threshold) self.__0_action__1 = action__1 @@ -9535,7 +9535,7 @@ struct _onScrollVisibilityChangeModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(threshold): - if #available(macOS 15.0,visionOS 2.0,iOS 18.0,tvOS 18.0,watchOS 11.0, *) { + if #available(tvOS 18.0,macOS 15.0,iOS 18.0,watchOS 11.0,visionOS 2.0, *) { let threshold = threshold as! AttributeReference __content @@ -9574,7 +9574,7 @@ struct _onTapGestureModifier: ViewModifier { @Event private var _1_action__0: Event.EventHandler #if os(iOS) || os(macOS) || os(visionOS) || os(watchOS) - @available(iOS 17.0,macOS 14.0,visionOS 1.0,watchOS 10.0, *) + @available(macOS 14.0,watchOS 10.0,iOS 17.0,visionOS 1.0, *) init(count: AttributeReference = .init(storage: .constant(1)), coordinateSpace: AnyCoordinateSpaceProtocol = .local, perform action__1: Event) { self.value = ._0(count: count, coordinateSpace: coordinateSpace) self.__0_action__1 = action__1 @@ -9594,7 +9594,7 @@ struct _onTapGestureModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(visionOS) || os(watchOS) case let ._0(count, coordinateSpace): - if #available(iOS 17.0,macOS 14.0,visionOS 1.0,watchOS 10.0, *) { + if #available(macOS 14.0,watchOS 10.0,iOS 17.0,visionOS 1.0, *) { let count = count as! AttributeReference let coordinateSpace = coordinateSpace as! AnyCoordinateSpaceProtocol @@ -10182,7 +10182,7 @@ struct _pointerStyleModifier: ViewModifier { #if os(macOS) || os(visionOS) - @available(visionOS 2.0,macOS 15.0, *) + @available(macOS 15.0,visionOS 2.0, *) init(_ style: SwiftUI.PointerStyle?) { self.value = ._0(style: style) @@ -10195,7 +10195,7 @@ struct _pointerStyleModifier: ViewModifier { fatalError("unreachable") #if os(macOS) || os(visionOS) case let ._0(style): - if #available(visionOS 2.0,macOS 15.0, *) { + if #available(macOS 15.0,visionOS 2.0, *) { let style = style as? SwiftUI.PointerStyle __content @@ -10518,14 +10518,14 @@ struct _presentationBackgroundModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(visionOS 1.0,watchOS 9.4,iOS 16.4,tvOS 16.4,macOS 13.3, *) + @available(macOS 13.3,watchOS 9.4,iOS 16.4,tvOS 16.4,visionOS 1.0, *) init(_ style: AnyShapeStyle.Resolvable) { self.value = ._0(style: style) } #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 13.3,watchOS 9.4,iOS 16.4,tvOS 16.4,visionOS 1.0, *) + @available(visionOS 1.0,watchOS 9.4,tvOS 16.4,iOS 16.4,macOS 13.3, *) init(alignment: AttributeReference = .init(storage: .constant(.center)), content: ViewReference=ViewReference(value: [])) { self.value = ._1(alignment: alignment, content: content) @@ -10538,7 +10538,7 @@ struct _presentationBackgroundModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(style): - if #available(visionOS 1.0,watchOS 9.4,iOS 16.4,tvOS 16.4,macOS 13.3, *) { + if #available(macOS 13.3,watchOS 9.4,iOS 16.4,tvOS 16.4,visionOS 1.0, *) { let style = style as! AnyShapeStyle.Resolvable __content @@ -10549,7 +10549,7 @@ struct _presentationBackgroundModifier: ViewModifier { #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._1(alignment, content): - if #available(macOS 13.3,watchOS 9.4,iOS 16.4,tvOS 16.4,visionOS 1.0, *) { + if #available(visionOS 1.0,watchOS 9.4,tvOS 16.4,iOS 16.4,macOS 13.3, *) { let alignment = alignment as! AttributeReference let content = content as! ViewReference @@ -10584,7 +10584,7 @@ struct _presentationBackgroundInteractionModifier: ViewModifier #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(iOS 16.4,tvOS 16.4,macOS 13.3,watchOS 9.4,visionOS 1.0, *) + @available(macOS 13.3,watchOS 9.4,iOS 16.4,tvOS 16.4,visionOS 1.0, *) init(_ interaction: SwiftUI.PresentationBackgroundInteraction) { self.value = ._0(interaction: interaction) @@ -10597,7 +10597,7 @@ struct _presentationBackgroundInteractionModifier: ViewModifier fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(interaction): - if #available(iOS 16.4,tvOS 16.4,macOS 13.3,watchOS 9.4,visionOS 1.0, *) { + if #available(macOS 13.3,watchOS 9.4,iOS 16.4,tvOS 16.4,visionOS 1.0, *) { let interaction = interaction as! SwiftUI.PresentationBackgroundInteraction __content @@ -10636,14 +10636,14 @@ struct _presentationCompactAdaptationModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(tvOS 16.4,iOS 16.4,macOS 13.3,visionOS 1.0,watchOS 9.4, *) + @available(macOS 13.3,watchOS 9.4,iOS 16.4,tvOS 16.4,visionOS 1.0, *) init(_ adaptation: SwiftUI.PresentationAdaptation) { self.value = ._0(adaptation: adaptation) } #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(iOS 16.4,macOS 13.3,watchOS 9.4,visionOS 1.0,tvOS 16.4, *) + @available(macOS 13.3,watchOS 9.4,iOS 16.4,tvOS 16.4,visionOS 1.0, *) init(horizontal horizontalAdaptation: SwiftUI.PresentationAdaptation,vertical verticalAdaptation: SwiftUI.PresentationAdaptation) { self.value = ._1(horizontalAdaptation: horizontalAdaptation, verticalAdaptation: verticalAdaptation) @@ -10656,7 +10656,7 @@ struct _presentationCompactAdaptationModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(adaptation): - if #available(tvOS 16.4,iOS 16.4,macOS 13.3,visionOS 1.0,watchOS 9.4, *) { + if #available(macOS 13.3,watchOS 9.4,iOS 16.4,tvOS 16.4,visionOS 1.0, *) { let adaptation = adaptation as! SwiftUI.PresentationAdaptation __content @@ -10667,7 +10667,7 @@ struct _presentationCompactAdaptationModifier: ViewModifier { #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._1(horizontalAdaptation, verticalAdaptation): - if #available(iOS 16.4,macOS 13.3,watchOS 9.4,visionOS 1.0,tvOS 16.4, *) { + if #available(macOS 13.3,watchOS 9.4,iOS 16.4,tvOS 16.4,visionOS 1.0, *) { let horizontalAdaptation = horizontalAdaptation as! SwiftUI.PresentationAdaptation let verticalAdaptation = verticalAdaptation as! SwiftUI.PresentationAdaptation @@ -10702,7 +10702,7 @@ struct _presentationContentInteractionModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(iOS 16.4,macOS 13.3,watchOS 9.4,visionOS 1.0,tvOS 16.4, *) + @available(visionOS 1.0,iOS 16.4,tvOS 16.4,watchOS 9.4,macOS 13.3, *) init(_ behavior: SwiftUI.PresentationContentInteraction) { self.value = ._0(behavior: behavior) @@ -10715,7 +10715,7 @@ struct _presentationContentInteractionModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(behavior): - if #available(iOS 16.4,macOS 13.3,watchOS 9.4,visionOS 1.0,tvOS 16.4, *) { + if #available(visionOS 1.0,iOS 16.4,tvOS 16.4,watchOS 9.4,macOS 13.3, *) { let behavior = behavior as! SwiftUI.PresentationContentInteraction __content @@ -10749,7 +10749,7 @@ struct _presentationCornerRadiusModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(iOS 16.4,macOS 13.3,watchOS 9.4,visionOS 1.0,tvOS 16.4, *) + @available(macOS 13.3,watchOS 9.4,iOS 16.4,tvOS 16.4,visionOS 1.0, *) init(_ cornerRadius: AttributeReference?) { self.value = ._0(cornerRadius: cornerRadius) @@ -10762,7 +10762,7 @@ struct _presentationCornerRadiusModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(cornerRadius): - if #available(iOS 16.4,macOS 13.3,watchOS 9.4,visionOS 1.0,tvOS 16.4, *) { + if #available(macOS 13.3,watchOS 9.4,iOS 16.4,tvOS 16.4,visionOS 1.0, *) { let cornerRadius = cornerRadius as? AttributeReference __content @@ -10843,7 +10843,7 @@ struct _presentationSizingModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(watchOS 11.0,iOS 18.0,tvOS 18.0,visionOS 2.0,macOS 15.0, *) + @available(visionOS 2.0,tvOS 18.0,macOS 15.0,watchOS 11.0,iOS 18.0, *) init(_ sizing: AnyPresentationSizing) { self.value = ._0(sizing: sizing) @@ -10856,7 +10856,7 @@ struct _presentationSizingModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(sizing): - if #available(watchOS 11.0,iOS 18.0,tvOS 18.0,visionOS 2.0,macOS 15.0, *) { + if #available(visionOS 2.0,tvOS 18.0,macOS 15.0,watchOS 11.0,iOS 18.0, *) { let sizing = sizing as! AnyPresentationSizing __content @@ -11219,7 +11219,7 @@ struct _replaceDisabledModifier: ViewModifier { #if os(iOS) || os(visionOS) - @available(iOS 16.0,visionOS 1.0, *) + @available(visionOS 1.0,iOS 16.0, *) init(_ isDisabled: AttributeReference = .init(storage: .constant(true)) ) { self.value = ._0(isDisabled: isDisabled) @@ -11232,7 +11232,7 @@ struct _replaceDisabledModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(visionOS) case let ._0(isDisabled): - if #available(iOS 16.0,visionOS 1.0, *) { + if #available(visionOS 1.0,iOS 16.0, *) { let isDisabled = isDisabled as! AttributeReference __content @@ -11393,21 +11393,21 @@ struct _safeAreaPaddingModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(iOS 17.0,watchOS 10.0,tvOS 17.0,visionOS 1.0,macOS 14.0, *) + @available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) init(_ insets: SwiftUICore.EdgeInsets) { self.value = ._0(insets: insets) } #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(iOS 17.0,watchOS 10.0,tvOS 17.0,visionOS 1.0,macOS 14.0, *) + @available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) init(_ edges: SwiftUICore.Edge.Set = .all, _ length: AttributeReference? = .init(storage: .constant(nil)) ) { self.value = ._1(edges: edges, length: length) } #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(iOS 17.0,watchOS 10.0,tvOS 17.0,visionOS 1.0,macOS 14.0, *) + @available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) init(_ length: AttributeReference) { self.value = ._2(length: length) @@ -11420,7 +11420,7 @@ struct _safeAreaPaddingModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(insets): - if #available(iOS 17.0,watchOS 10.0,tvOS 17.0,visionOS 1.0,macOS 14.0, *) { + if #available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) { let insets = insets as! SwiftUICore.EdgeInsets __content @@ -11431,7 +11431,7 @@ struct _safeAreaPaddingModifier: ViewModifier { #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._1(edges, length): - if #available(iOS 17.0,watchOS 10.0,tvOS 17.0,visionOS 1.0,macOS 14.0, *) { + if #available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) { let edges = edges as! SwiftUICore.Edge.Set let length = length as? AttributeReference @@ -11443,7 +11443,7 @@ let length = length as? AttributeReference #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._2(length): - if #available(iOS 17.0,watchOS 10.0,tvOS 17.0,visionOS 1.0,macOS 14.0, *) { + if #available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) { let length = length as! AttributeReference __content @@ -11855,7 +11855,7 @@ struct _scrollBounceBehaviorModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(tvOS 16.4,iOS 16.4,macOS 13.3,visionOS 1.0,watchOS 9.4, *) + @available(tvOS 16.4,macOS 13.3,iOS 16.4,watchOS 9.4,visionOS 1.0, *) init(_ behavior: SwiftUI.ScrollBounceBehavior,axes: SwiftUICore.Axis.Set = [.vertical] ) { self.value = ._0(behavior: behavior, axes: axes) @@ -11868,7 +11868,7 @@ struct _scrollBounceBehaviorModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(behavior, axes): - if #available(tvOS 16.4,iOS 16.4,macOS 13.3,visionOS 1.0,watchOS 9.4, *) { + if #available(tvOS 16.4,macOS 13.3,iOS 16.4,watchOS 9.4,visionOS 1.0, *) { let behavior = behavior as! SwiftUI.ScrollBounceBehavior let axes = axes as! SwiftUICore.Axis.Set @@ -11903,7 +11903,7 @@ struct _scrollClipDisabledModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 14.0,iOS 17.0,visionOS 1.0,watchOS 10.0,tvOS 17.0, *) + @available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) init(_ disabled: AttributeReference = .init(storage: .constant(true)) ) { self.value = ._0(disabled: disabled) @@ -11916,7 +11916,7 @@ struct _scrollClipDisabledModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(disabled): - if #available(macOS 14.0,iOS 17.0,visionOS 1.0,watchOS 10.0,tvOS 17.0, *) { + if #available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) { let disabled = disabled as! AttributeReference __content @@ -11950,7 +11950,7 @@ struct _scrollContentBackgroundModifier: ViewModifier { #if os(iOS) || os(macOS) || os(visionOS) || os(watchOS) - @available(macOS 13.0,iOS 16.0,visionOS 1.0,watchOS 9.0, *) + @available(visionOS 1.0,macOS 13.0,watchOS 9.0,iOS 16.0, *) init(_ visibility: AttributeReference) { self.value = ._0(visibility: visibility) @@ -11963,7 +11963,7 @@ struct _scrollContentBackgroundModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(visionOS) || os(watchOS) case let ._0(visibility): - if #available(macOS 13.0,iOS 16.0,visionOS 1.0,watchOS 9.0, *) { + if #available(visionOS 1.0,macOS 13.0,watchOS 9.0,iOS 16.0, *) { let visibility = visibility as! AttributeReference __content @@ -12044,7 +12044,7 @@ struct _scrollDismissesKeyboardModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(watchOS) - @available(macOS 13.0,iOS 16.0,watchOS 9.0,tvOS 16.0, *) + @available(macOS 13.0,watchOS 9.0,iOS 16.0,tvOS 16.0, *) init(_ mode: SwiftUI.ScrollDismissesKeyboardMode) { self.value = ._0(mode: mode) @@ -12057,7 +12057,7 @@ struct _scrollDismissesKeyboardModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(watchOS) case let ._0(mode): - if #available(macOS 13.0,iOS 16.0,watchOS 9.0,tvOS 16.0, *) { + if #available(macOS 13.0,watchOS 9.0,iOS 16.0,tvOS 16.0, *) { let mode = mode as! SwiftUI.ScrollDismissesKeyboardMode __content @@ -12143,14 +12143,14 @@ struct _scrollIndicatorsFlashModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) + @available(visionOS 1.0,tvOS 17.0,macOS 14.0,watchOS 10.0,iOS 17.0, *) init(trigger value: AttributeReference) { self.value = ._0(value: value) } #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) + @available(visionOS 1.0,tvOS 17.0,macOS 14.0,watchOS 10.0,iOS 17.0, *) init(onAppear: AttributeReference) { self.value = ._1(onAppear: onAppear) @@ -12163,7 +12163,7 @@ struct _scrollIndicatorsFlashModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(value): - if #available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) { + if #available(visionOS 1.0,tvOS 17.0,macOS 14.0,watchOS 10.0,iOS 17.0, *) { let value = value as! AttributeReference __content @@ -12174,7 +12174,7 @@ struct _scrollIndicatorsFlashModifier: ViewModifier { #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._1(onAppear): - if #available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) { + if #available(visionOS 1.0,tvOS 17.0,macOS 14.0,watchOS 10.0,iOS 17.0, *) { let onAppear = onAppear as! AttributeReference __content @@ -12208,7 +12208,7 @@ struct _scrollPositionModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(visionOS 1.0,watchOS 10.0,iOS 17.0,tvOS 17.0,macOS 14.0, *) + @available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) init(id: ChangeTracked,anchor: AttributeReference? = .init(storage: .constant(nil)) ) { self.value = ._0(anchor: anchor) self.__0_id = id @@ -12221,7 +12221,7 @@ struct _scrollPositionModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(anchor): - if #available(visionOS 1.0,watchOS 10.0,iOS 17.0,tvOS 17.0,macOS 14.0, *) { + if #available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) { let anchor = anchor as? AttributeReference __content @@ -12255,7 +12255,7 @@ struct _scrollTargetBehaviorModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0,macOS 14.0, *) + @available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) init(_ behavior: AnyScrollTargetBehavior) { self.value = ._0(behavior: behavior) @@ -12268,7 +12268,7 @@ struct _scrollTargetBehaviorModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(behavior): - if #available(watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0,macOS 14.0, *) { + if #available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) { let behavior = behavior as! AnyScrollTargetBehavior __content @@ -12302,7 +12302,7 @@ struct _scrollTargetLayoutModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0,macOS 14.0, *) + @available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) init(isEnabled: AttributeReference = .init(storage: .constant(true)) ) { self.value = ._0(isEnabled: isEnabled) @@ -12315,7 +12315,7 @@ struct _scrollTargetLayoutModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(isEnabled): - if #available(watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0,macOS 14.0, *) { + if #available(tvOS 17.0,macOS 14.0,visionOS 1.0,iOS 17.0,watchOS 10.0, *) { let isEnabled = isEnabled as! AttributeReference __content @@ -12349,7 +12349,7 @@ struct _searchDictationBehaviorModifier: ViewModifier { #if os(iOS) || os(visionOS) - @available(iOS 17.0,visionOS 1.0, *) + @available(visionOS 1.0,iOS 17.0, *) init(_ dictationBehavior: SwiftUI.TextInputDictationBehavior) { self.value = ._0(dictationBehavior: dictationBehavior) @@ -12362,7 +12362,7 @@ struct _searchDictationBehaviorModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(visionOS) case let ._0(dictationBehavior): - if #available(iOS 17.0,visionOS 1.0, *) { + if #available(visionOS 1.0,iOS 17.0, *) { let dictationBehavior = dictationBehavior as! SwiftUI.TextInputDictationBehavior __content @@ -12396,7 +12396,7 @@ struct _searchPresentationToolbarBehaviorModifier: ViewModifier #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(iOS 17.1,macOS 14.1,watchOS 10.1,visionOS 1.0,tvOS 17.1, *) + @available(visionOS 1.0,iOS 17.1,tvOS 17.1,watchOS 10.1,macOS 14.1, *) init(_ behavior: SwiftUI.SearchPresentationToolbarBehavior) { self.value = ._0(behavior: behavior) @@ -12409,7 +12409,7 @@ struct _searchPresentationToolbarBehaviorModifier: ViewModifier fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(behavior): - if #available(iOS 17.1,macOS 14.1,watchOS 10.1,visionOS 1.0,tvOS 17.1, *) { + if #available(visionOS 1.0,iOS 17.1,tvOS 17.1,watchOS 10.1,macOS 14.1, *) { let behavior = behavior as! SwiftUI.SearchPresentationToolbarBehavior __content @@ -12577,7 +12577,7 @@ struct _searchableModifier: ViewModifier { } #if os(iOS) || os(macOS) || os(visionOS) - @available(iOS 17.0,visionOS 1.0,macOS 14.0, *) + @available(visionOS 1.0,iOS 17.0,macOS 14.0, *) init(text: ChangeTracked,isPresented: ChangeTracked,placement: SwiftUI.SearchFieldPlacement = .automatic, prompt: TextReference? = nil ) { self.value = ._3(placement: placement, prompt: prompt) self.__3_text = text @@ -12585,7 +12585,7 @@ self.__3_isPresented = isPresented } #endif #if os(iOS) || os(macOS) || os(visionOS) - @available(iOS 17.0,visionOS 1.0,macOS 14.0, *) + @available(visionOS 1.0,iOS 17.0,macOS 14.0, *) init(text: ChangeTracked,isPresented: ChangeTracked,placement: SwiftUI.SearchFieldPlacement = .automatic, prompt: SwiftUICore.LocalizedStringKey) { self.value = ._4(placement: placement, prompt: prompt) self.__4_text = text @@ -12593,7 +12593,7 @@ self.__4_isPresented = isPresented } #endif #if os(iOS) || os(macOS) || os(visionOS) - @available(iOS 17.0,visionOS 1.0,macOS 14.0, *) + @available(visionOS 1.0,iOS 17.0,macOS 14.0, *) init(text: ChangeTracked,isPresented: ChangeTracked,placement: SwiftUI.SearchFieldPlacement = .automatic, prompt: AttributeReference) { self.value = ._5(placement: placement, prompt: prompt) self.__5_text = text @@ -12661,7 +12661,7 @@ self.__5_isPresented = isPresented #if os(iOS) || os(macOS) || os(visionOS) case let ._3(placement, prompt): - if #available(iOS 17.0,visionOS 1.0,macOS 14.0, *) { + if #available(visionOS 1.0,iOS 17.0,macOS 14.0, *) { let placement = placement as! SwiftUI.SearchFieldPlacement let prompt = prompt as? TextReference __content._observeTextReference(prompt, on: element, in: context) { __content in @@ -12673,7 +12673,7 @@ let prompt = prompt as? TextReference #endif #if os(iOS) || os(macOS) || os(visionOS) case let ._4(placement, prompt): - if #available(iOS 17.0,visionOS 1.0,macOS 14.0, *) { + if #available(visionOS 1.0,iOS 17.0,macOS 14.0, *) { let placement = placement as! SwiftUI.SearchFieldPlacement let prompt = prompt as! SwiftUICore.LocalizedStringKey @@ -12685,7 +12685,7 @@ let prompt = prompt as! SwiftUICore.LocalizedStringKey #endif #if os(iOS) || os(macOS) || os(visionOS) case let ._5(placement, prompt): - if #available(iOS 17.0,visionOS 1.0,macOS 14.0, *) { + if #available(visionOS 1.0,iOS 17.0,macOS 14.0, *) { let placement = placement as! SwiftUI.SearchFieldPlacement let prompt = prompt as! AttributeReference @@ -12753,7 +12753,7 @@ struct _sectionActionsModifier: ViewModifier { #if os(iOS) || os(macOS) || os(visionOS) - @available(iOS 18.0,visionOS 2.0,macOS 15.0, *) + @available(iOS 18.0,macOS 15.0,visionOS 2.0, *) init(content: ViewReference=ViewReference(value: [])) { self.value = ._0(content: content) @@ -12766,7 +12766,7 @@ struct _sectionActionsModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(visionOS) case let ._0(content): - if #available(iOS 18.0,visionOS 2.0,macOS 15.0, *) { + if #available(iOS 18.0,macOS 15.0,visionOS 2.0, *) { let content = content as! ViewReference __content @@ -12800,7 +12800,7 @@ struct _selectionDisabledModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 14.0,iOS 17.0,visionOS 1.0,watchOS 10.0,tvOS 17.0, *) + @available(macOS 14.0,visionOS 1.0,tvOS 17.0,iOS 17.0,watchOS 10.0, *) init(_ isDisabled: AttributeReference = .init(storage: .constant(true)) ) { self.value = ._0(isDisabled: isDisabled) @@ -12813,7 +12813,7 @@ struct _selectionDisabledModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(isDisabled): - if #available(macOS 14.0,iOS 17.0,visionOS 1.0,watchOS 10.0,tvOS 17.0, *) { + if #available(macOS 14.0,visionOS 1.0,tvOS 17.0,iOS 17.0,watchOS 10.0, *) { let isDisabled = isDisabled as! AttributeReference __content @@ -12966,7 +12966,7 @@ struct _simultaneousGestureModifier: ViewModifier { } #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 15.0,watchOS 11.0,iOS 18.0,tvOS 18.0,visionOS 2.0, *) + @available(macOS 15.0,tvOS 18.0,iOS 18.0,watchOS 11.0,visionOS 2.0, *) init(_ gesture: _AnyGesture,name: AttributeReference,isEnabled: AttributeReference = .init(storage: .constant(true)) ) { self.value = ._2(gesture: gesture, name: name, isEnabled: isEnabled) @@ -13001,7 +13001,7 @@ struct _simultaneousGestureModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._2(gesture, name, isEnabled): - if #available(macOS 15.0,watchOS 11.0,iOS 18.0,tvOS 18.0,visionOS 2.0, *) { + if #available(macOS 15.0,tvOS 18.0,iOS 18.0,watchOS 11.0,visionOS 2.0, *) { let gesture = gesture as! _AnyGesture let name = name as! AttributeReference let isEnabled = isEnabled as! AttributeReference @@ -13460,7 +13460,7 @@ struct _swipeActionsModifier: ViewModifier { #if os(iOS) || os(macOS) || os(visionOS) || os(watchOS) - @available(macOS 12.0,iOS 15.0,visionOS 1.0,watchOS 8.0, *) + @available(macOS 12.0,watchOS 8.0,iOS 15.0,visionOS 1.0, *) init(edge: SwiftUICore.HorizontalEdge = .trailing, allowsFullSwipe: AttributeReference = .init(storage: .constant(true)), content: ViewReference=ViewReference(value: [])) { self.value = ._0(edge: edge, allowsFullSwipe: allowsFullSwipe, content: content) @@ -13473,7 +13473,7 @@ struct _swipeActionsModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(visionOS) || os(watchOS) case let ._0(edge, allowsFullSwipe, content): - if #available(macOS 12.0,iOS 15.0,visionOS 1.0,watchOS 8.0, *) { + if #available(macOS 12.0,watchOS 8.0,iOS 15.0,visionOS 1.0, *) { let edge = edge as! SwiftUICore.HorizontalEdge let allowsFullSwipe = allowsFullSwipe as! AttributeReference let content = content as! ViewReference @@ -13514,14 +13514,14 @@ struct _symbolEffectModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(tvOS 17.0,iOS 17.0,macOS 14.0,visionOS 1.0,watchOS 10.0, *) + @available(macOS 14.0,visionOS 1.0,tvOS 17.0,iOS 17.0,watchOS 10.0, *) init(_ effect: AnyIndefiniteSymbolEffect,options: Symbols.SymbolEffectOptions = .default, isActive: AttributeReference = .init(storage: .constant(true)) ) { self.value = ._0(effect: effect, options: options, isActive: isActive) } #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(tvOS 17.0,iOS 17.0,macOS 14.0,visionOS 1.0,watchOS 10.0, *) + @available(macOS 14.0,visionOS 1.0,tvOS 17.0,iOS 17.0,watchOS 10.0, *) init(_ effect: AnyDiscreteSymbolEffect,options: Symbols.SymbolEffectOptions = .default, value: AttributeReference) { self.value = ._1(effect: effect, options: options, value: value) @@ -13534,7 +13534,7 @@ struct _symbolEffectModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(effect, options, isActive): - if #available(tvOS 17.0,iOS 17.0,macOS 14.0,visionOS 1.0,watchOS 10.0, *) { + if #available(macOS 14.0,visionOS 1.0,tvOS 17.0,iOS 17.0,watchOS 10.0, *) { let effect = effect as! AnyIndefiniteSymbolEffect let options = options as! Symbols.SymbolEffectOptions let isActive = isActive as! AttributeReference @@ -13547,7 +13547,7 @@ let isActive = isActive as! AttributeReference #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._1(effect, options, value): - if #available(tvOS 17.0,iOS 17.0,macOS 14.0,visionOS 1.0,watchOS 10.0, *) { + if #available(macOS 14.0,visionOS 1.0,tvOS 17.0,iOS 17.0,watchOS 10.0, *) { let effect = effect as! AnyDiscreteSymbolEffect let options = options as! Symbols.SymbolEffectOptions let value = value as! AttributeReference @@ -13583,7 +13583,7 @@ struct _symbolEffectsRemovedModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 14.0,iOS 17.0,visionOS 1.0,watchOS 10.0,tvOS 17.0, *) + @available(tvOS 17.0,macOS 14.0,visionOS 1.0,watchOS 10.0,iOS 17.0, *) init(_ isEnabled: AttributeReference = .init(storage: .constant(true)) ) { self.value = ._0(isEnabled: isEnabled) @@ -13596,7 +13596,7 @@ struct _symbolEffectsRemovedModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(isEnabled): - if #available(macOS 14.0,iOS 17.0,visionOS 1.0,watchOS 10.0,tvOS 17.0, *) { + if #available(tvOS 17.0,macOS 14.0,visionOS 1.0,watchOS 10.0,iOS 17.0, *) { let isEnabled = isEnabled as! AttributeReference __content @@ -13818,7 +13818,7 @@ struct _tabViewSidebarFooterModifier: ViewModifier { #if os(iOS) || os(macOS) || os(visionOS) - @available(iOS 18.0,macOS 15.0,visionOS 2.0, *) + @available(visionOS 2.0,iOS 18.0,macOS 15.0, *) init(content: ViewReference=ViewReference(value: [])) { self.value = ._0(content: content) @@ -13831,7 +13831,7 @@ struct _tabViewSidebarFooterModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(visionOS) case let ._0(content): - if #available(iOS 18.0,macOS 15.0,visionOS 2.0, *) { + if #available(visionOS 2.0,iOS 18.0,macOS 15.0, *) { let content = content as! ViewReference __content @@ -13865,7 +13865,7 @@ struct _tabViewSidebarHeaderModifier: ViewModifier { #if os(iOS) || os(macOS) || os(visionOS) - @available(iOS 18.0,macOS 15.0,visionOS 2.0, *) + @available(visionOS 2.0,iOS 18.0,macOS 15.0, *) init(content: ViewReference=ViewReference(value: [])) { self.value = ._0(content: content) @@ -13878,7 +13878,7 @@ struct _tabViewSidebarHeaderModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(visionOS) case let ._0(content): - if #available(iOS 18.0,macOS 15.0,visionOS 2.0, *) { + if #available(visionOS 2.0,iOS 18.0,macOS 15.0, *) { let content = content as! ViewReference __content @@ -13959,7 +13959,7 @@ struct _tableStyleModifier: ViewModifier { #if os(iOS) || os(macOS) || os(visionOS) - @available(iOS 16.0,visionOS 1.0,macOS 12.0, *) + @available(visionOS 1.0,iOS 16.0,macOS 12.0, *) init(_ style: AnyTableStyle) { self.value = ._0(style: style) @@ -13972,7 +13972,7 @@ struct _tableStyleModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(visionOS) case let ._0(style): - if #available(iOS 16.0,visionOS 1.0,macOS 12.0, *) { + if #available(visionOS 1.0,iOS 16.0,macOS 12.0, *) { let style = style as! AnyTableStyle __content @@ -14053,7 +14053,7 @@ struct _textContentTypeModifier: ViewModifier { #if os(iOS) || os(tvOS) || os(visionOS) - @available(iOS 13.0,visionOS 1.0,tvOS 13.0, *) + @available(tvOS 13.0,visionOS 1.0,iOS 13.0, *) init(_ textContentType: UIKit.UITextContentType?) { self.value = ._0(textContentType: textContentType) @@ -14066,7 +14066,7 @@ struct _textContentTypeModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(tvOS) || os(visionOS) case let ._0(textContentType): - if #available(iOS 13.0,visionOS 1.0,tvOS 13.0, *) { + if #available(tvOS 13.0,visionOS 1.0,iOS 13.0, *) { let textContentType = textContentType as? UIKit.UITextContentType __content @@ -14100,7 +14100,7 @@ struct _textEditorStyleModifier: ViewModifier { #if os(iOS) || os(macOS) || os(visionOS) - @available(iOS 17.0,visionOS 1.0,macOS 14.0, *) + @available(iOS 17.0,macOS 14.0,visionOS 1.0, *) init(_ style: AnyTextEditorStyle) { self.value = ._0(style: style) @@ -14113,7 +14113,7 @@ struct _textEditorStyleModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(visionOS) case let ._0(style): - if #available(iOS 17.0,visionOS 1.0,macOS 14.0, *) { + if #available(iOS 17.0,macOS 14.0,visionOS 1.0, *) { let style = style as! AnyTextEditorStyle __content @@ -14194,7 +14194,7 @@ struct _textInputAutocapitalizationModifier: ViewModifier { #if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(iOS 15.0,tvOS 15.0,visionOS 1.0,watchOS 8.0, *) + @available(watchOS 8.0,iOS 15.0,tvOS 15.0,visionOS 1.0, *) init(_ autocapitalization: SwiftUI.TextInputAutocapitalization?) { self.value = ._0(autocapitalization: autocapitalization) @@ -14207,7 +14207,7 @@ struct _textInputAutocapitalizationModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(autocapitalization): - if #available(iOS 15.0,tvOS 15.0,visionOS 1.0,watchOS 8.0, *) { + if #available(watchOS 8.0,iOS 15.0,tvOS 15.0,visionOS 1.0, *) { let autocapitalization = autocapitalization as? SwiftUI.TextInputAutocapitalization __content @@ -14382,7 +14382,7 @@ struct _textSelectionAffinityModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(tvOS 18.0,iOS 18.0,macOS 15.0,visionOS 2.0,watchOS 11.0, *) + @available(macOS 15.0,watchOS 11.0,iOS 18.0,tvOS 18.0,visionOS 2.0, *) init(_ affinity: SwiftUI.TextSelectionAffinity) { self.value = ._0(affinity: affinity) @@ -14395,7 +14395,7 @@ struct _textSelectionAffinityModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(affinity): - if #available(tvOS 18.0,iOS 18.0,macOS 15.0,visionOS 2.0,watchOS 11.0, *) { + if #available(macOS 15.0,watchOS 11.0,iOS 18.0,tvOS 18.0,visionOS 2.0, *) { let affinity = affinity as! SwiftUI.TextSelectionAffinity __content @@ -14568,7 +14568,7 @@ struct _toolbarModifier: ViewModifier { } #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) + @available(macOS 14.0,watchOS 10.0,visionOS 1.0,tvOS 17.0,iOS 17.0, *) init(removing defaultItemKind: SwiftUI.ToolbarDefaultItemKind?) { self.value = ._1(defaultItemKind: defaultItemKind) @@ -14606,7 +14606,7 @@ struct _toolbarModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._1(defaultItemKind): - if #available(macOS 14.0,watchOS 10.0,iOS 17.0,tvOS 17.0,visionOS 1.0, *) { + if #available(macOS 14.0,watchOS 10.0,visionOS 1.0,tvOS 17.0,iOS 17.0, *) { let defaultItemKind = defaultItemKind as? SwiftUI.ToolbarDefaultItemKind __content @@ -14732,7 +14732,7 @@ struct _toolbarBackgroundVisibilityModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(tvOS 18.0,iOS 18.0,macOS 15.0,visionOS 2.0,watchOS 11.0, *) + @available(macOS 15.0,watchOS 11.0,iOS 18.0,tvOS 18.0,visionOS 2.0, *) init(_ visibility: AttributeReference,for bars: SwiftUI.ToolbarPlacement) { self.value = ._0(visibility: visibility, bars: bars) @@ -14745,7 +14745,7 @@ struct _toolbarBackgroundVisibilityModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(visibility, bars): - if #available(tvOS 18.0,iOS 18.0,macOS 15.0,visionOS 2.0,watchOS 11.0, *) { + if #available(macOS 15.0,watchOS 11.0,iOS 18.0,tvOS 18.0,visionOS 2.0, *) { let visibility = visibility as! AttributeReference let bars = bars as! SwiftUI.ToolbarPlacement @@ -14921,7 +14921,7 @@ struct _toolbarTitleDisplayModeModifier: ViewModifier { #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(macOS 14.0,iOS 17.0,visionOS 1.0,watchOS 10.0,tvOS 17.0, *) + @available(tvOS 17.0,macOS 14.0,iOS 17.0,watchOS 10.0,visionOS 1.0, *) init(_ mode: SwiftUI.ToolbarTitleDisplayMode) { self.value = ._0(mode: mode) @@ -14934,7 +14934,7 @@ struct _toolbarTitleDisplayModeModifier: ViewModifier { fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(mode): - if #available(macOS 14.0,iOS 17.0,visionOS 1.0,watchOS 10.0,tvOS 17.0, *) { + if #available(tvOS 17.0,macOS 14.0,iOS 17.0,watchOS 10.0,visionOS 1.0, *) { let mode = mode as! SwiftUI.ToolbarTitleDisplayMode __content @@ -15674,7 +15674,7 @@ struct _windowToolbarFullScreenVisibilityModifier: ViewModifier #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) - @available(watchOS 11.0,iOS 18.0,tvOS 18.0,visionOS 2.0,macOS 15.0, *) + @available(tvOS 18.0,iOS 18.0,watchOS 11.0,macOS 15.0,visionOS 2.0, *) init(_ visibility: SwiftUI.WindowToolbarFullScreenVisibility) { self.value = ._0(visibility: visibility) @@ -15687,7 +15687,7 @@ struct _windowToolbarFullScreenVisibilityModifier: ViewModifier fatalError("unreachable") #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) case let ._0(visibility): - if #available(watchOS 11.0,iOS 18.0,tvOS 18.0,visionOS 2.0,macOS 15.0, *) { + if #available(tvOS 18.0,iOS 18.0,watchOS 11.0,macOS 15.0,visionOS 2.0, *) { let visibility = visibility as! SwiftUI.WindowToolbarFullScreenVisibility __content @@ -16809,18 +16809,19 @@ indirect case chunk16(_BuiltinModifierChunk16) indirect case chunk17(_BuiltinModifierChunk17) indirect case chunk18(_BuiltinModifierChunk18) indirect case chunk19(_BuiltinModifierChunk19) - indirect case _MaskModifier(LiveViewNative._MaskModifier) + indirect case _MatchedTransitionSourceModifier(LiveViewNative._MatchedTransitionSourceModifier) +indirect case _FileImporterModifier(LiveViewNative._FileImporterModifier) +indirect case _FocusScopeModifier(LiveViewNative._FocusScopeModifier) indirect case _SearchScopesModifier(LiveViewNative._SearchScopesModifier) -indirect case _MatchedGeometryEffectModifier(LiveViewNative._MatchedGeometryEffectModifier) -indirect case _Rotation3DEffectModifier(LiveViewNative._Rotation3DEffectModifier) -indirect case _NavigationTransitionModifier(LiveViewNative._NavigationTransitionModifier) -indirect case _PresentationDetentsModifier(LiveViewNative._PresentationDetentsModifier) +indirect case _MaskModifier(LiveViewNative._MaskModifier) indirect case _PerspectiveRotationEffectModifier(LiveViewNative._PerspectiveRotationEffectModifier) -indirect case _FocusScopeModifier(LiveViewNative._FocusScopeModifier) +indirect case _PresentationDetentsModifier(LiveViewNative._PresentationDetentsModifier) indirect case _PrefersDefaultFocusModifier(LiveViewNative._PrefersDefaultFocusModifier) -indirect case _SearchCompletionModifier(LiveViewNative._SearchCompletionModifier) +indirect case _MatchedGeometryEffectModifier(LiveViewNative._MatchedGeometryEffectModifier) +indirect case _NavigationTransitionModifier(LiveViewNative._NavigationTransitionModifier) indirect case _OnSubmitModifier(LiveViewNative._OnSubmitModifier) -indirect case _MatchedTransitionSourceModifier(LiveViewNative._MatchedTransitionSourceModifier) +indirect case _Rotation3DEffectModifier(LiveViewNative._Rotation3DEffectModifier) +indirect case _SearchCompletionModifier(LiveViewNative._SearchCompletionModifier) indirect case _customRegistryModifier(R.CustomModifier) indirect case _anyTextModifier(_AnyTextModifier) indirect case _anyImageModifier(_AnyImageModifier) @@ -16869,29 +16870,31 @@ case let .chunk18(chunk): content.modifier(chunk) case let .chunk19(chunk): content.modifier(chunk) - case let ._MaskModifier(modifier): + case let ._MatchedTransitionSourceModifier(modifier): content.modifier(modifier) -case let ._SearchScopesModifier(modifier): +case let ._FileImporterModifier(modifier): content.modifier(modifier) -case let ._MatchedGeometryEffectModifier(modifier): +case let ._FocusScopeModifier(modifier): content.modifier(modifier) -case let ._Rotation3DEffectModifier(modifier): +case let ._SearchScopesModifier(modifier): content.modifier(modifier) -case let ._NavigationTransitionModifier(modifier): - content.modifier(modifier) -case let ._PresentationDetentsModifier(modifier): +case let ._MaskModifier(modifier): content.modifier(modifier) case let ._PerspectiveRotationEffectModifier(modifier): content.modifier(modifier) -case let ._FocusScopeModifier(modifier): +case let ._PresentationDetentsModifier(modifier): content.modifier(modifier) case let ._PrefersDefaultFocusModifier(modifier): content.modifier(modifier) -case let ._SearchCompletionModifier(modifier): +case let ._MatchedGeometryEffectModifier(modifier): + content.modifier(modifier) +case let ._NavigationTransitionModifier(modifier): content.modifier(modifier) case let ._OnSubmitModifier(modifier): content.modifier(modifier) -case let ._MatchedTransitionSourceModifier(modifier): +case let ._Rotation3DEffectModifier(modifier): + content.modifier(modifier) +case let ._SearchCompletionModifier(modifier): content.modifier(modifier) case let ._customRegistryModifier(modifier): content.modifier(modifier) @@ -17190,18 +17193,19 @@ _windowResizeBehaviorModifier.name: _windowResizeBehaviorModifier.parser(i _windowToolbarFullScreenVisibilityModifier.name: _windowToolbarFullScreenVisibilityModifier.parser(in: context).map({ Output.chunk19(.windowToolbarFullScreenVisibility($0)) }).eraseToAnyParser(), _writingToolsBehaviorModifier.name: _writingToolsBehaviorModifier.parser(in: context).map({ Output.chunk19(.writingToolsBehavior($0)) }).eraseToAnyParser(), _zIndexModifier.name: _zIndexModifier.parser(in: context).map({ Output.chunk19(.zIndex($0)) }).eraseToAnyParser(), - LiveViewNative._MaskModifier.name: LiveViewNative._MaskModifier.parser(in: context).map(Output._MaskModifier).eraseToAnyParser(), + LiveViewNative._MatchedTransitionSourceModifier.name: LiveViewNative._MatchedTransitionSourceModifier.parser(in: context).map(Output._MatchedTransitionSourceModifier).eraseToAnyParser(), +LiveViewNative._FileImporterModifier.name: LiveViewNative._FileImporterModifier.parser(in: context).map(Output._FileImporterModifier).eraseToAnyParser(), +LiveViewNative._FocusScopeModifier.name: LiveViewNative._FocusScopeModifier.parser(in: context).map(Output._FocusScopeModifier).eraseToAnyParser(), LiveViewNative._SearchScopesModifier.name: LiveViewNative._SearchScopesModifier.parser(in: context).map(Output._SearchScopesModifier).eraseToAnyParser(), -LiveViewNative._MatchedGeometryEffectModifier.name: LiveViewNative._MatchedGeometryEffectModifier.parser(in: context).map(Output._MatchedGeometryEffectModifier).eraseToAnyParser(), -LiveViewNative._Rotation3DEffectModifier.name: LiveViewNative._Rotation3DEffectModifier.parser(in: context).map(Output._Rotation3DEffectModifier).eraseToAnyParser(), -LiveViewNative._NavigationTransitionModifier.name: LiveViewNative._NavigationTransitionModifier.parser(in: context).map(Output._NavigationTransitionModifier).eraseToAnyParser(), -LiveViewNative._PresentationDetentsModifier.name: LiveViewNative._PresentationDetentsModifier.parser(in: context).map(Output._PresentationDetentsModifier).eraseToAnyParser(), +LiveViewNative._MaskModifier.name: LiveViewNative._MaskModifier.parser(in: context).map(Output._MaskModifier).eraseToAnyParser(), LiveViewNative._PerspectiveRotationEffectModifier.name: LiveViewNative._PerspectiveRotationEffectModifier.parser(in: context).map(Output._PerspectiveRotationEffectModifier).eraseToAnyParser(), -LiveViewNative._FocusScopeModifier.name: LiveViewNative._FocusScopeModifier.parser(in: context).map(Output._FocusScopeModifier).eraseToAnyParser(), +LiveViewNative._PresentationDetentsModifier.name: LiveViewNative._PresentationDetentsModifier.parser(in: context).map(Output._PresentationDetentsModifier).eraseToAnyParser(), LiveViewNative._PrefersDefaultFocusModifier.name: LiveViewNative._PrefersDefaultFocusModifier.parser(in: context).map(Output._PrefersDefaultFocusModifier).eraseToAnyParser(), -LiveViewNative._SearchCompletionModifier.name: LiveViewNative._SearchCompletionModifier.parser(in: context).map(Output._SearchCompletionModifier).eraseToAnyParser(), +LiveViewNative._MatchedGeometryEffectModifier.name: LiveViewNative._MatchedGeometryEffectModifier.parser(in: context).map(Output._MatchedGeometryEffectModifier).eraseToAnyParser(), +LiveViewNative._NavigationTransitionModifier.name: LiveViewNative._NavigationTransitionModifier.parser(in: context).map(Output._NavigationTransitionModifier).eraseToAnyParser(), LiveViewNative._OnSubmitModifier.name: LiveViewNative._OnSubmitModifier.parser(in: context).map(Output._OnSubmitModifier).eraseToAnyParser(), -LiveViewNative._MatchedTransitionSourceModifier.name: LiveViewNative._MatchedTransitionSourceModifier.parser(in: context).map(Output._MatchedTransitionSourceModifier).eraseToAnyParser(), +LiveViewNative._Rotation3DEffectModifier.name: LiveViewNative._Rotation3DEffectModifier.parser(in: context).map(Output._Rotation3DEffectModifier).eraseToAnyParser(), +LiveViewNative._SearchCompletionModifier.name: LiveViewNative._SearchCompletionModifier.parser(in: context).map(Output._SearchCompletionModifier).eraseToAnyParser(), ] let deprecations = [ @@ -17397,7 +17401,7 @@ ConstantAtomLiteral("content").map({ () -> Self in /// * `.tabBar` /// * `.sidebar` @_documentation(visibility: public) -@available(iOS 18.0,visionOS 2.0,macOS 15.0,watchOS 11.0,tvOS 18.0, *) +@available(tvOS 18.0,macOS 15.0,visionOS 2.0,iOS 18.0,watchOS 11.0, *) extension AdaptableTabBarPlacement: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -17515,7 +17519,7 @@ ConstantAtomLiteral("vertical").map({ () -> Self in /// * `.standard` /// * `.increased` @_documentation(visibility: public) -@available(iOS 17.0,macOS 14.0,visionOS 1.0, *) +@available(visionOS 1.0,iOS 17.0,macOS 14.0, *) extension BadgeProminence: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -17743,7 +17747,7 @@ ConstantAtomLiteral("plusLighter").map({ () -> Self in /// * `.enabled` /// * `.disabled` @_documentation(visibility: public) -@available(iOS 17.0,visionOS 1.0,macOS 14.0,watchOS 10.0,tvOS 17.0, *) +@available(iOS 17.0,watchOS 10.0,tvOS 17.0,macOS 14.0,visionOS 1.0, *) extension ButtonRepeatBehavior: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -17862,35 +17866,35 @@ ConstantAtomLiteral("dark").map({ () -> Self in /// * `.navigationSplitView` /// * `.window` @_documentation(visibility: public) -@available(tvOS 17.0,iOS 17.0,macOS 14.0,visionOS 1.0,watchOS 10.0, *) +@available(tvOS 17.0,visionOS 1.0,watchOS 10.0,iOS 17.0,macOS 14.0, *) extension ContainerBackgroundPlacement: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { OneOf { #if os(watchOS) ConstantAtomLiteral("tabView").map({ () -> Self in -if #available(tvOS 17.0,iOS 17.0,macOS 14.0,watchOS 10.0, *) { +if #available(tvOS 17.0,watchOS 10.0,iOS 17.0,macOS 14.0, *) { return Self.tabView } else { fatalError("'tabView' is not available in this OS version") } }) #endif #if os(iOS) || os(watchOS) ConstantAtomLiteral("navigation").map({ () -> Self in -if #available(tvOS 17.0,iOS 18.0,macOS 14.0,watchOS 10.0, *) { +if #available(tvOS 17.0,watchOS 10.0,iOS 18.0,macOS 14.0, *) { return Self.navigation } else { fatalError("'navigation' is not available in this OS version") } }) #endif #if os(iOS) || os(watchOS) ConstantAtomLiteral("navigationSplitView").map({ () -> Self in -if #available(tvOS 17.0,iOS 18.0,macOS 14.0,watchOS 11.0, *) { +if #available(tvOS 17.0,watchOS 11.0,iOS 18.0,macOS 14.0, *) { return Self.navigationSplitView } else { fatalError("'navigationSplitView' is not available in this OS version") } }) #endif #if os(macOS) ConstantAtomLiteral("window").map({ () -> Self in -if #available(tvOS 17.0,iOS 17.0,macOS 15.0,watchOS 10.0, *) { +if #available(tvOS 17.0,watchOS 10.0,iOS 17.0,macOS 15.0, *) { return Self.window } else { fatalError("'window' is not available in this OS version") } }) @@ -17911,7 +17915,7 @@ if #available(tvOS 17.0,iOS 17.0,macOS 15.0,watchOS 10.0, *) { /// * `.scrollContent` /// * `.scrollIndicators` @_documentation(visibility: public) -@available(macOS 14.0,iOS 17.0,tvOS 17.0,visionOS 1.0,watchOS 10.0, *) +@available(tvOS 17.0,iOS 17.0,watchOS 10.0,visionOS 1.0,macOS 14.0, *) extension ContentMarginPlacement: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -17970,35 +17974,35 @@ ConstantAtomLiteral("interaction").map({ () -> Self in #if os(iOS) || os(macOS) || os(visionOS) ConstantAtomLiteral("dragPreview").map({ () -> Self in -if #available(macOS 12.0,watchOS 8.0,iOS 15.0,tvOS 15.0,visionOS 1.0, *) { +if #available(tvOS 15.0,iOS 15.0,visionOS 1.0,macOS 12.0,watchOS 8.0, *) { return Self.dragPreview } else { fatalError("'dragPreview' is not available in this OS version") } }) #endif #if os(iOS) || os(tvOS) || os(visionOS) ConstantAtomLiteral("contextMenuPreview").map({ () -> Self in -if #available(macOS 12.0,watchOS 8.0,iOS 15.0,tvOS 17.0,visionOS 1.0, *) { +if #available(tvOS 17.0,iOS 15.0,visionOS 1.0,macOS 12.0,watchOS 8.0, *) { return Self.contextMenuPreview } else { fatalError("'contextMenuPreview' is not available in this OS version") } }) #endif #if os(iOS) || os(tvOS) || os(visionOS) ConstantAtomLiteral("hoverEffect").map({ () -> Self in -if #available(macOS 12.0,watchOS 8.0,iOS 15.0,tvOS 18.0,visionOS 1.0, *) { +if #available(tvOS 18.0,iOS 15.0,visionOS 1.0,macOS 12.0,watchOS 8.0, *) { return Self.hoverEffect } else { fatalError("'hoverEffect' is not available in this OS version") } }) #endif #if os(macOS) || os(watchOS) ConstantAtomLiteral("focusEffect").map({ () -> Self in -if #available(macOS 12.0,watchOS 8.0,iOS 15.0,tvOS 15.0, *) { +if #available(tvOS 15.0,iOS 15.0,macOS 12.0,watchOS 8.0, *) { return Self.focusEffect } else { fatalError("'focusEffect' is not available in this OS version") } }) #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) ConstantAtomLiteral("accessibility").map({ () -> Self in -if #available(macOS 14.0,watchOS 10.0,visionOS 1.0,tvOS 17.0,iOS 17.0, *) { +if #available(iOS 17.0,tvOS 17.0,macOS 14.0,watchOS 10.0,visionOS 1.0, *) { return Self.accessibility } else { fatalError("'accessibility' is not available in this OS version") } }) @@ -18021,7 +18025,7 @@ if #available(macOS 14.0,watchOS 10.0,visionOS 1.0,tvOS 17.0,iOS 17.0, *) { /// * `.large` /// * `.extraLarge` @_documentation(visibility: public) -@available(macOS 10.15,watchOS 9.0,visionOS 1.0,iOS 15.0, *) +@available(iOS 15.0,macOS 10.15,watchOS 9.0,visionOS 1.0, *) extension ControlSize: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -18049,14 +18053,14 @@ ConstantAtomLiteral("regular").map({ () -> Self in #endif #if os(iOS) || os(macOS) || os(visionOS) || os(watchOS) ConstantAtomLiteral("large").map({ () -> Self in -if #available(macOS 11.0,watchOS 9.0,visionOS 1.0,iOS 15.0, *) { +if #available(iOS 15.0,macOS 11.0,watchOS 9.0,visionOS 1.0, *) { return Self.large } else { fatalError("'large' is not available in this OS version") } }) #endif #if os(iOS) || os(macOS) || os(visionOS) || os(watchOS) ConstantAtomLiteral("extraLarge").map({ () -> Self in -if #available(macOS 14.0,watchOS 10.0,visionOS 1.0,iOS 17.0, *) { +if #available(iOS 17.0,macOS 14.0,watchOS 10.0,visionOS 1.0, *) { return Self.extraLarge } else { fatalError("'extraLarge' is not available in this OS version") } }) @@ -18111,7 +18115,7 @@ ConstantAtomLiteral("userInitiated").map({ () -> Self in /// * `.critical` /// * `.standard` @_documentation(visibility: public) -@available(macOS 13.0,iOS 17.0,tvOS 17.0,visionOS 1.0,watchOS 10.0, *) +@available(tvOS 17.0,visionOS 1.0,watchOS 10.0,iOS 17.0,macOS 13.0, *) extension DialogSeverity: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -18132,7 +18136,7 @@ ConstantAtomLiteral("critical").map({ () -> Self in #endif #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) ConstantAtomLiteral("standard").map({ () -> Self in -if #available(macOS 14.0,iOS 17.0,tvOS 17.0,visionOS 1.0,watchOS 10.0, *) { +if #available(tvOS 17.0,visionOS 1.0,watchOS 10.0,iOS 17.0,macOS 14.0, *) { return Self.standard } else { fatalError("'standard' is not available in this OS version") } }) @@ -18345,7 +18349,7 @@ ConstantAtomLiteral("displayFileExtensions").map({ () -> Self in /// * `.edit` /// * `.automatic` @_documentation(visibility: public) -@available(iOS 17.0,visionOS 1.0,macOS 14.0,watchOS 10.0,tvOS 17.0, *) +@available(iOS 17.0,watchOS 10.0,tvOS 17.0,macOS 14.0,visionOS 1.0, *) extension FocusInteractions: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -18652,7 +18656,7 @@ ConstantAtomLiteral("trailing").map({ () -> Self in /// * `.leading` /// * `.trailing` @_documentation(visibility: public) -@available(macOS 15.0,watchOS 11.0,iOS 18.0,tvOS 18.0,visionOS 2.0, *) +@available(tvOS 18.0,iOS 18.0,visionOS 2.0,macOS 15.0,watchOS 11.0, *) extension HorizontalDirection: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -18721,7 +18725,7 @@ ConstantAtomLiteral("trailing").map({ () -> Self in /// * `.highlight` /// * `.lift` @_documentation(visibility: public) -@available(tvOS 16.0,iOS 13.4,visionOS 1.0, *) +@available(tvOS 16.0,visionOS 1.0,iOS 13.4, *) extension HoverEffect: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -18735,7 +18739,7 @@ ConstantAtomLiteral("automatic").map({ () -> Self in #endif #if os(iOS) || os(tvOS) || os(visionOS) ConstantAtomLiteral("highlight").map({ () -> Self in -if #available(tvOS 17.0,iOS 13.4,visionOS 1.0, *) { +if #available(tvOS 17.0,visionOS 1.0,iOS 13.4, *) { return Self.highlight } else { fatalError("'highlight' is not available in this OS version") } }) @@ -18883,7 +18887,7 @@ ConstantAtomLiteral("fixed").map({ () -> Self in /// * `.sheet` /// * `.fullScreenCover` @_documentation(visibility: public) -@available(macOS 13.3,iOS 16.4,tvOS 16.4,visionOS 1.0,watchOS 9.4, *) +@available(tvOS 16.4,iOS 16.4,watchOS 9.4,visionOS 1.0,macOS 13.3, *) extension PresentationAdaptation: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -18939,7 +18943,7 @@ ConstantAtomLiteral("fullScreenCover").map({ () -> Self in /// * `.resizes` /// * `.scrolls` @_documentation(visibility: public) -@available(iOS 16.4,visionOS 1.0,macOS 13.3,watchOS 9.4,tvOS 16.4, *) +@available(iOS 16.4,watchOS 9.4,tvOS 16.4,macOS 13.3,visionOS 1.0, *) extension PresentationContentInteraction: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -19036,7 +19040,7 @@ ConstantAtomLiteral("privacy").map({ () -> Self in #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS) ConstantAtomLiteral("invalidated").map({ () -> Self in -if #available(macOS 14.0,watchOS 10.0,visionOS 1.0,tvOS 17.0,iOS 17.0, *) { +if #available(iOS 17.0,tvOS 17.0,macOS 14.0,watchOS 10.0,visionOS 1.0, *) { return Self.invalidated } else { fatalError("'invalidated' is not available in this OS version") } }) @@ -19146,7 +19150,7 @@ ConstantAtomLiteral("minimum").map({ () -> Self in #if os(watchOS) ConstantAtomLiteral("navigationBar").map({ () -> Self in -if #available(tvOS 16.0,macOS 13.0,iOS 16.0,watchOS 9.0, *) { +if #available(iOS 16.0,macOS 13.0,tvOS 16.0,watchOS 9.0, *) { return Self.navigationBar } else { fatalError("'navigationBar' is not available in this OS version") } }) @@ -19167,7 +19171,7 @@ if #available(tvOS 16.0,macOS 13.0,iOS 16.0,watchOS 9.0, *) { /// * `.sizeChanges` /// * `.alignment` @_documentation(visibility: public) -@available(macOS 15.0,iOS 18.0,tvOS 18.0,visionOS 2.0,watchOS 11.0, *) +@available(tvOS 18.0,iOS 18.0,watchOS 11.0,visionOS 2.0,macOS 15.0, *) extension ScrollAnchorRole: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -19209,7 +19213,7 @@ ConstantAtomLiteral("alignment").map({ () -> Self in /// * `.always` /// * `.basedOnSize` @_documentation(visibility: public) -@available(macOS 13.3,iOS 16.4,tvOS 16.4,visionOS 1.0,watchOS 9.4, *) +@available(tvOS 16.4,visionOS 1.0,watchOS 9.4,iOS 16.4,macOS 13.3, *) extension ScrollBounceBehavior: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -19252,7 +19256,7 @@ ConstantAtomLiteral("basedOnSize").map({ () -> Self in /// * `.interactively` /// * `.never` @_documentation(visibility: public) -@available(macOS 13.0,iOS 16.0,tvOS 16.0,watchOS 9.0, *) +@available(tvOS 16.0,iOS 16.0,watchOS 9.0,macOS 13.0, *) extension ScrollDismissesKeyboardMode: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -19351,7 +19355,7 @@ ConstantAtomLiteral("never").map({ () -> Self in /// * `.enabled` /// * `.disabled` @_documentation(visibility: public) -@available(macOS 15.0,iOS 18.0,tvOS 18.0,visionOS 2.0,watchOS 11.0, *) +@available(tvOS 18.0,iOS 18.0,watchOS 11.0,visionOS 2.0,macOS 15.0, *) extension ScrollInputBehavior: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -19393,7 +19397,7 @@ ConstantAtomLiteral("disabled").map({ () -> Self in /// * `.onTextEntry` /// * `.onSearchPresentation` @_documentation(visibility: public) -@available(macOS 13.3,tvOS 16.4,watchOS 9.4,iOS 16.4,visionOS 1.0, *) +@available(watchOS 9.4,tvOS 16.4,iOS 16.4,macOS 13.3,visionOS 1.0, *) extension SearchScopeActivation: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -19643,7 +19647,7 @@ ConstantAtomLiteral("search").map({ () -> Self in /// * `.upstream` /// * `.downstream` @_documentation(visibility: public) -@available(macOS 15.0,iOS 18.0,tvOS 18.0,visionOS 2.0,watchOS 11.0, *) +@available(tvOS 18.0,iOS 18.0,watchOS 11.0,visionOS 2.0,macOS 15.0, *) extension TextSelectionAffinity: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -19684,7 +19688,7 @@ ConstantAtomLiteral("downstream").map({ () -> Self in /// * `.sidebarToggle` /// * `.title` @_documentation(visibility: public) -@available(macOS 14.0,iOS 17.0,tvOS 17.0,visionOS 1.0,watchOS 10.0, *) +@available(tvOS 17.0,visionOS 1.0,watchOS 10.0,iOS 17.0,macOS 14.0, *) extension ToolbarDefaultItemKind: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -19698,7 +19702,7 @@ ConstantAtomLiteral("sidebarToggle").map({ () -> Self in #endif #if os(iOS) || os(macOS) || os(visionOS) ConstantAtomLiteral("title").map({ () -> Self in -if #available(macOS 15.0,iOS 18.0,tvOS 17.0,visionOS 2.0,watchOS 10.0, *) { +if #available(tvOS 17.0,visionOS 2.0,watchOS 10.0,iOS 18.0,macOS 15.0, *) { return Self.title } else { fatalError("'title' is not available in this OS version") } }) @@ -19734,21 +19738,21 @@ ConstantAtomLiteral("automatic").map({ () -> Self in #if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS) ConstantAtomLiteral("navigationStack").map({ () -> Self in -if #available(iOS 16.0,visionOS 1.0,macOS 13.0,watchOS 9.0,tvOS 16.0, *) { +if #available(iOS 16.0,watchOS 9.0,tvOS 16.0,macOS 13.0,visionOS 1.0, *) { return Self.navigationStack } else { fatalError("'navigationStack' is not available in this OS version") } }) #endif #if os(iOS) || os(visionOS) ConstantAtomLiteral("browser").map({ () -> Self in -if #available(iOS 16.0,visionOS 1.0,macOS 13.0,watchOS 9.0,tvOS 16.0, *) { +if #available(iOS 16.0,watchOS 9.0,tvOS 16.0,macOS 13.0,visionOS 1.0, *) { return Self.browser } else { fatalError("'browser' is not available in this OS version") } }) #endif #if os(iOS) || os(macOS) || os(visionOS) ConstantAtomLiteral("editor").map({ () -> Self in -if #available(iOS 16.0,visionOS 1.0,macOS 13.0,watchOS 9.0,tvOS 16.0, *) { +if #available(iOS 16.0,watchOS 9.0,tvOS 16.0,macOS 13.0,visionOS 1.0, *) { return Self.editor } else { fatalError("'editor' is not available in this OS version") } }) @@ -19770,7 +19774,7 @@ if #available(iOS 16.0,visionOS 1.0,macOS 13.0,watchOS 9.0,tvOS 16.0, *) { /// * `.inlineLarge` /// * `.inline` @_documentation(visibility: public) -@available(macOS 14.0,iOS 17.0,tvOS 17.0,visionOS 1.0,watchOS 10.0, *) +@available(tvOS 17.0,iOS 17.0,watchOS 10.0,visionOS 1.0,macOS 14.0, *) extension ToolbarTitleDisplayMode: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -19876,7 +19880,7 @@ ConstantAtomLiteral("lastTextBaseline").map({ () -> Self in /// * `.up` /// * `.down` @_documentation(visibility: public) -@available(macOS 15.0,watchOS 11.0,iOS 18.0,tvOS 18.0,visionOS 2.0, *) +@available(tvOS 18.0,iOS 18.0,visionOS 2.0,macOS 15.0,watchOS 11.0, *) extension VerticalDirection: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -20029,7 +20033,7 @@ ConstantAtomLiteral("disabled").map({ () -> Self in /// * `.visible` /// * `.onHover` @_documentation(visibility: public) -@available(watchOS 11.0,visionOS 2.0,iOS 18.0,macOS 15.0,tvOS 18.0, *) +@available(tvOS 18.0,iOS 18.0,watchOS 11.0,visionOS 2.0,macOS 15.0, *) extension WindowToolbarFullScreenVisibility: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { @@ -20072,7 +20076,7 @@ ConstantAtomLiteral("onHover").map({ () -> Self in /// * `.limited` /// * `.disabled` @_documentation(visibility: public) -@available(iOS 18.0,macOS 15.0, *) +@available(macOS 15.0,iOS 18.0, *) extension WritingToolsBehavior: ParseableModifierValue { public static func parser(in context: ParseableModifierContext) -> some Parser { ImplicitStaticMember { diff --git a/Sources/LiveViewNative/__CoreExtensions.swift b/Sources/LiveViewNative/__CoreExtensions.swift index c7f10ba32..41c6b3f7e 100644 --- a/Sources/LiveViewNative/__CoreExtensions.swift +++ b/Sources/LiveViewNative/__CoreExtensions.swift @@ -21,6 +21,8 @@ extension LiveViewNativeCore.LiveSocket: @unchecked Sendable {} extension LiveViewNativeCore.Events: @unchecked Sendable {} extension LiveViewNativeCore.ChannelStatuses: @unchecked Sendable {} +extension LiveViewNativeCore.LiveFile: @unchecked Sendable {} + extension Node: Identifiable { public var id: NodeRef { self.id() diff --git a/Sources/ModifierGenerator/ModifierGenerator.swift b/Sources/ModifierGenerator/ModifierGenerator.swift index b73307cdf..bf025bcef 100644 --- a/Sources/ModifierGenerator/ModifierGenerator.swift +++ b/Sources/ModifierGenerator/ModifierGenerator.swift @@ -29,6 +29,7 @@ struct ModifierGenerator: ParsableCommand { "_PrefersDefaultFocusModifier", "_MatchedTransitionSourceModifier", "_NavigationTransitionModifier", + "_FileImporterModifier", ] static let requiredTypes: Set = [