SwiftstructWorkflowUI
ShortcutChiclet
struct WorkflowUI.ShortcutChiclet
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwiftUI.View
Members 23
- field
var _colorScheme: SwiftUI.Environment<SwiftUI.ColorScheme> - field
var _colorSchemeContrast: SwiftUI.Environment<SwiftUI.ColorSchemeContrast> - field
var _isPressed: SwiftUI.Environment<Bool> - field
var _isProgressHovered: SwiftUI.State<Bool> - field
var _isShowingProgress: SwiftUI.State<Bool> - field
var _lightenBackground: SwiftUI.Environment<Bool> - field
var _model: SwiftUI.ObservedObject<WorkflowUI.ShortcutChiclet.Model> - field
var _progress: SwiftUI.ObservedObject<WorkflowUI.ShortcutChiclet.Progress> - field
var accessibilitySelectionAction: (() -> ())? - field
let associatedAppBundleIdentifier: String?+0x40 - field
let icon: WorkflowUI.ShortcutChicletIcon+0x10 - field
let name: String+0x0 - field
var runAction: ((WFContentCollection?) -> ())? - field
let shouldRenderUnderglow: Bool+0x59 - field
let shouldUseClearBackground: Bool+0x58 - field
var stopAction: (() -> ())? - field
let textColor: WFColor+0x38 - field
let workflowReference: WFWorkflowReference?+0x50 - init
init(name: String, icon: WorkflowUI.ShortcutChicletIcon, textColor: WFColor?, renderUnderglow: Bool, associatedAppBundleIdentifier: String?, model: WorkflowUI.ShortcutChiclet.Model, progress: WorkflowUI.ShortcutChiclet.Progress?, runAction: ((WFContentCollection?) -> ())?, stopAction: (() -> ())?, accessibilitySelectionAction: (() -> ())?) -> WorkflowUI.ShortcutChiclet - init
init(name: String, icon: WorkflowUI.ShortcutChicletIcon, textColor: WFColor?, renderUnderglow: Bool, associatedAppBundleIdentifier: String?, model: WorkflowUI.ShortcutChiclet.Model, progress: WorkflowUI.ShortcutChiclet.Progress, runAction: (WFContentCollection?) -> (), stopAction: () -> (), accessibilitySelectionAction: () -> ()) -> WorkflowUI.ShortcutChiclet - init
init(reference: WFWorkflowReference, model: WorkflowUI.ShortcutChiclet.Model, progress: WorkflowUI.ShortcutChiclet.Progress, renderUnderglow: Bool, runAction: (WFContentCollection?) -> (), stopAction: () -> (), accessibilitySelectionAction: () -> (), shouldUseClearBackground: Bool) -> WorkflowUI.ShortcutChiclet - typealias
typealias Body = accessor function at 5376459448 - var
var body: some SwiftUI.View { get }
Header
struct ShortcutChiclet { struct AddButton { class Model { let insets: SwiftUI.EdgeInsets // synthesized from the backing storage `_pointSize`; the property's own accessors are stripped @Combine.Published var pointSize: CoreGraphics.CGFloat { get set } var action: () -> () } // synthesized from the backing storage `_model`; the property's own accessors are stripped @SwiftUI.ObservedObject var model: WorkflowUI.ShortcutChiclet.AddButton.Model { get set } // synthesized from the backing storage `_isHovering`; the property's own accessors are stripped @SwiftUI.State var isHovering: Swift.Bool { get set } } struct DownloadingButton { class Model { let insets: SwiftUI.EdgeInsets // synthesized from the backing storage `_pointSize`; the property's own accessors are stripped @Combine.Published var pointSize: CoreGraphics.CGFloat { get set } var action: () -> () } // synthesized from the backing storage `_model`; the property's own accessors are stripped @SwiftUI.ObservedObject var model: WorkflowUI.ShortcutChiclet.DownloadingButton.Model { get set } // synthesized from the backing storage `_isHovered`; the property's own accessors are stripped @SwiftUI.State var isHovered: Swift.Bool { get set } } enum ButtonType { case menu(WorkflowUI.ShortcutChiclet.MenuItemDataSource) case edit case progress case run case add case check case downloading case none } enum MenuItem { case item(WorkflowUI.ShortcutChiclet.MenuItemModel) case divider var id: Swift.Int { get } } class MenuItemDataSource { let getMenuItems: () -> [WorkflowUI.ShortcutChiclet.MenuItem] init(getMenuItems: @escaping () -> [WorkflowUI.ShortcutChiclet.MenuItem]) deinit } class MenuItemModel { enum ItemVariant { case button(() -> ()) case toggle(WorkflowUI.LibraryMenuItem.ToggleModel) } let name: Swift.String let symbol: Swift.String let role: SwiftUI.ButtonRole? let id: Foundation.UUID @Combine.Published var variant: WorkflowUI.ShortcutChiclet.MenuItemModel.ItemVariant { get set } init(name: Swift.String, symbol: Swift.String, role: SwiftUI.ButtonRole?, variant: WorkflowUI.ShortcutChiclet.MenuItemModel.ItemVariant) deinit } class Model { struct Metrics { struct Icon { let textSpacing: CoreGraphics.CGFloat let dimension: CoreGraphics.CGFloat init(textSpacing: CoreGraphics.CGFloat, dimension: CoreGraphics.CGFloat) } struct Button { let pointSize: CoreGraphics.CGFloat init(pointSize: CoreGraphics.CGFloat) } let cornerRadius: CoreGraphics.CGFloat let insets: SwiftUI.EdgeInsets let icon: WorkflowUI.ShortcutChiclet.Model.Metrics.Icon let button: WorkflowUI.ShortcutChiclet.Model.Metrics.Button init(cornerRadius: CoreGraphics.CGFloat, insets: __C.UIEdgeInsets, icon: WorkflowUI.ShortcutChiclet.Model.Metrics.Icon, button: WorkflowUI.ShortcutChiclet.Model.Metrics.Button) static var default: WorkflowUI.ShortcutChiclet.Model.Metrics { get } } var buttonAction: (() -> ())? @Combine.Published var metrics: WorkflowUI.ShortcutChiclet.Model.Metrics { get set } @Combine.Published var isSelected: Swift.Bool { get set } @Combine.Published var isHovered: Swift.Bool { get set } @Combine.Published var isEditing: Swift.Bool { get set } @Combine.Published var isGallery: Swift.Bool { get set } @Combine.Published var isGalleryDetail: Swift.Bool { get set } @Combine.Published var isAddedToLibrary: Swift.Bool { get set } @Combine.Published var isDownloading: Swift.Bool { get set } @Combine.Published var isOpenInEditor: Swift.Bool { get set } @Combine.Published var buttonType: WorkflowUI.ShortcutChiclet.ButtonType? { get set } @Combine.Published var popoverModel: WorkflowUI.PopoverModel { get set } init(metrics: WorkflowUI.ShortcutChiclet.Model.Metrics, isSelected: Swift.Bool, isHovered: Swift.Bool, isEditing: Swift.Bool, isGallery: Swift.Bool, isGalleryDetail: Swift.Bool, isAddedToLibrary: Swift.Bool, isDownloading: Swift.Bool, buttonType: WorkflowUI.ShortcutChiclet.ButtonType?, buttonAction: (() -> ())?) func reset() deinit } class Progress { enum State { case progressing(Swift.Double) case cancelled(Swift.Double) case idle case done } struct Transition { let insertionOpacityDuration: Swift.Double let removalDecreasedScale: CoreGraphics.CGFloat let removalOpacityDuration: Swift.Double init(progress: WorkflowUI.ShortcutChiclet.Progress) @SwiftUI.ObservedObject var progress: WorkflowUI.ShortcutChiclet.Progress { get set } func body(content: SwiftUI._ViewModifier_Content<WorkflowUI.ShortcutChiclet.Progress.Transition>) -> some SwiftUI.View } @Combine.Published var state: WorkflowUI.ShortcutChiclet.Progress.State { get set } var isActive: Swift.Bool { get } init() func apply(value: Swift.Double, cancelled: Swift.Bool) static var noProgress: Swift.Double { get } deinit } struct ChicletNameView { let name: Swift.String let textColor: __C.WFColor } struct ChicletIconView { let metricsDimension: CoreGraphics.CGFloat let icon: any WorkflowUI.ShortcutChicletIcon let displayingIcon: __C.WFIcon } struct EditButton { class Model { let buttonType: WorkflowUI.ShortcutChiclet.ButtonType let insets: SwiftUI.EdgeInsets // synthesized from the backing storage `_pointSize`; the property's own accessors are stripped @Combine.Published var pointSize: CoreGraphics.CGFloat { get set } // synthesized from the backing storage `_editing`; the property's own accessors are stripped @Combine.Published var editing: Swift.Bool { get set } // synthesized from the backing storage `_selected`; the property's own accessors are stripped @Combine.Published var selected: Swift.Bool { get set } var action: () -> () } // synthesized from the backing storage `_model`; the property's own accessors are stripped @SwiftUI.ObservedObject var model: WorkflowUI.ShortcutChiclet.EditButton.Model { get set } // synthesized from the backing storage `_isHovering`; the property's own accessors are stripped @SwiftUI.State var isHovering: Swift.Bool { get set } } struct CheckButton { class Model { let insets: SwiftUI.EdgeInsets // synthesized from the backing storage `_pointSize`; the property's own accessors are stripped @Combine.Published var pointSize: CoreGraphics.CGFloat { get set } var action: () -> () } // synthesized from the backing storage `_model`; the property's own accessors are stripped @SwiftUI.ObservedObject var model: WorkflowUI.ShortcutChiclet.CheckButton.Model { get set } // synthesized from the backing storage `_isHovering`; the property's own accessors are stripped @SwiftUI.State var isHovering: Swift.Bool { get set } } struct ProgressView { struct Metrics { let dimension: CoreGraphics.CGFloat let insets: SwiftUI.EdgeInsets init(dimension: CoreGraphics.CGFloat, insets: SwiftUI.EdgeInsets) } let primaryColor: SwiftUI.Color let passthroughColor: SwiftUI.Color // synthesized from the backing storage `_progress`; the property's own accessors are stripped @SwiftUI.ObservedObject var progress: WorkflowUI.ShortcutChiclet.Progress { get set } let metrics: WorkflowUI.ShortcutChiclet.ProgressView.Metrics // synthesized from the backing storage `_isHovered`; the property's own accessors are stripped @SwiftUI.Binding var isHovered: Swift.Bool { get set } let action: () -> () init(primaryColor: SwiftUI.Color, passthroughColor: SwiftUI.Color, progress: WorkflowUI.ShortcutChiclet.Progress, metrics: WorkflowUI.ShortcutChiclet.ProgressView.Metrics, isHovered: SwiftUI.Binding<Swift.Bool>, action: @escaping () -> ()) var body: some SwiftUI.View { get } } struct RunButton { class Model { struct Metrics { let size: __C.CGSize let insets: SwiftUI.EdgeInsets init(size: __C.CGSize, insets: SwiftUI.EdgeInsets) init(dimension: CoreGraphics.CGFloat, insets: SwiftUI.EdgeInsets) static var zero: WorkflowUI.ShortcutChiclet.RunButton.Model.Metrics { get } } let metrics: WorkflowUI.ShortcutChiclet.RunButton.Model.Metrics @Combine.Published var workflowReference: __C.WFWorkflowReference? { get set } @Combine.Published var color: SwiftUI.Color { get set } @Combine.Published var changeColorOnHover: Swift.Bool { get set } @Combine.Published var symbolName: Swift.String { get set } @Combine.Published var action: () -> () { get set } @Combine.Published var isHidden: Swift.Bool { get set } init(workflowReference: __C.WFWorkflowReference?, color: SwiftUI.Color, changeColorOnHover: Swift.Bool, isHidden: Swift.Bool, symbolName: Swift.String, metrics: WorkflowUI.ShortcutChiclet.RunButton.Model.Metrics, action: @escaping () -> ()) deinit } // synthesized from the backing storage `_isHovered`; the property's own accessors are stripped @SwiftUI.State var isHovered: Swift.Bool { get set } init(model: WorkflowUI.ShortcutChiclet.RunButton.Model) var body: some SwiftUI.View { get } @SwiftUI.ObservedObject var model: WorkflowUI.ShortcutChiclet.RunButton.Model { get set } } let name: Swift.String let icon: any WorkflowUI.ShortcutChicletIcon let textColor: __C.WFColor let associatedAppBundleIdentifier: Swift.String? let workflowReference: __C.WFWorkflowReference? let shouldUseClearBackground: Swift.Bool let shouldRenderUnderglow: Swift.Bool // synthesized from the backing storage `_model`; the property's own accessors are stripped @SwiftUI.ObservedObject var model: WorkflowUI.ShortcutChiclet.Model { get set } // synthesized from the backing storage `_progress`; the property's own accessors are stripped @SwiftUI.ObservedObject var progress: WorkflowUI.ShortcutChiclet.Progress { get set } // synthesized from the backing storage `_isPressed`; the property's own accessors are stripped @SwiftUI.Environment var isPressed: Swift.Bool { get } // synthesized from the backing storage `_lightenBackground`; the property's own accessors are stripped @SwiftUI.Environment var lightenBackground: Swift.Bool { get } // synthesized from the backing storage `_colorScheme`; the property's own accessors are stripped @SwiftUI.Environment var colorScheme: SwiftUI.ColorScheme { get } // synthesized from the backing storage `_colorSchemeContrast`; the property's own accessors are stripped @SwiftUI.Environment var colorSchemeContrast: SwiftUI.ColorSchemeContrast { get } // synthesized from the backing storage `_isShowingProgress`; the property's own accessors are stripped @SwiftUI.State var isShowingProgress: Swift.Bool { get set } // synthesized from the backing storage `_isProgressHovered`; the property's own accessors are stripped @SwiftUI.State var isProgressHovered: Swift.Bool { get set } var runAction: ((_: __C.WFContentCollection?) -> ())? var stopAction: (() -> ())? var accessibilitySelectionAction: (() -> ())? init(name: Swift.String, icon: any WorkflowUI.ShortcutChicletIcon, textColor: __C.WFColor?, renderUnderglow: Swift.Bool, associatedAppBundleIdentifier: Swift.String?, model: WorkflowUI.ShortcutChiclet.Model, progress: WorkflowUI.ShortcutChiclet.Progress?, runAction: ((_: __C.WFContentCollection?) -> ())?, stopAction: (() -> ())?, accessibilitySelectionAction: (() -> ())?) init(name: Swift.String, icon: any WorkflowUI.ShortcutChicletIcon, textColor: __C.WFColor?, renderUnderglow: Swift.Bool, associatedAppBundleIdentifier: Swift.String?, model: WorkflowUI.ShortcutChiclet.Model, progress: WorkflowUI.ShortcutChiclet.Progress, runAction: @escaping (_: __C.WFContentCollection?) -> (), stopAction: @escaping () -> (), accessibilitySelectionAction: @escaping () -> ()) init(reference: __C.WFWorkflowReference, model: WorkflowUI.ShortcutChiclet.Model, progress: WorkflowUI.ShortcutChiclet.Progress, renderUnderglow: Swift.Bool, runAction: @escaping (_: __C.WFContentCollection?) -> (), stopAction: @escaping () -> (), accessibilitySelectionAction: @escaping () -> (), shouldUseClearBackground: Swift.Bool) var body: some SwiftUI.View { get } }