SwiftenumCarPlayUI
enum CarPlayUI.GridView.Base
Header
enum CarPlayUI.GridView.Base { enum Style { case condensed(maximumNumberOfLinesOverride: Swift.UInt?, maximumNumberOfColumns: Swift.UInt?, prefersFillingRows: Swift.Bool) case hero(maximumNumberOfLinesOverride: Swift.UInt?, aspectRatio: CoreGraphics.CGFloat, hasThumbnail: Swift.Bool?) case imageGrid(maximumNumberOfLinesOverride: Swift.UInt?, distribution: CarPlayUI.GridView.ImageGrid.Layout.Distribution) case squareGrid(maximumNumberOfLinesOverride: Swift.UInt?) } @Observation.Observable class ViewModel { struct Subtitle { enum Style { case primary init?(_: __C.CPUIGridViewBaseViewModelSubtitleStyle) var objcSubtitleStyle: __C.CPUIGridViewBaseViewModelSubtitleStyle { get } } var text: Swift.String var style: CarPlayUI.GridView.Base.ViewModel.Subtitle.Style? } enum TitlePriority { case none case title init?(_: __C.CPUIGridViewBaseViewModelTitlePriority) var objcTitlePriority: __C.CPUIGridViewBaseViewModelTitlePriority { get } } struct ImageConfiguration { enum Image { enum Placeholder { case uiImage(__C.UIImage) case systemImage(Swift.String, SwiftUI.Image.Scale?, SwiftUI.Font.Weight?) case cpuiPlaceholder(__C.CPUINowPlayingPlaceholderType?) init?(_: __C.CPUIGridViewBaseViewModelImagePlaceholder) var objcPlaceholder: __C.CPUIGridViewBaseViewModelImagePlaceholder { get } } case systemImage(Swift.String, SwiftUI.Image.Scale?, SwiftUI.Font.Weight?) case uiImage(__C.UIImage, __C.UIColor?) case artwork(MusicKit.Artwork?, CarPlayUI.GridView.Base.ViewModel.ImageConfiguration.Image.Placeholder?) } enum Shape { case rounded(radius: Swift.Double?, style: SwiftUI.RoundedCornerStyle?) case circle init(_: __C.CPUIGridViewBaseViewModelImageShape) var objcShape: __C.CPUIGridViewBaseViewModelImageShape { get } static var roundedSquare: CarPlayUI.GridView.Base.ViewModel.ImageConfiguration.Shape { get } } class Builder: __C.NSObject { let image: CarPlayUI.GridView.Base.ViewModel.ImageConfiguration.Image var shape: CarPlayUI.GridView.Base.ViewModel.ImageConfiguration.Shape? var isTallArtwork: Swift.Bool var useLegibilityGradient: Swift.Bool } let image: CarPlayUI.GridView.Base.ViewModel.ImageConfiguration.Image let shape: CarPlayUI.GridView.Base.ViewModel.ImageConfiguration.Shape? let isTallArtwork: Swift.Bool let useLegibilityGradient: Swift.Bool init(image: CarPlayUI.GridView.Base.ViewModel.ImageConfiguration.Image, shape: CarPlayUI.GridView.Base.ViewModel.ImageConfiguration.Shape?, isTallArtwork: Swift.Bool, useLegibilityGradient: Swift.Bool) init(image: CarPlayUI.GridView.Base.ViewModel.ImageConfiguration.Image, shape: CarPlayUI.GridView.Base.ViewModel.ImageConfiguration.Shape?, isTallArtwork: Swift.Bool) } enum Accessory { case symbol(name: Swift.String, SwiftUI.Image.Scale?, SwiftUI.Font.Weight?) case customSymbol(name: Swift.String, SwiftUI.Image.Scale?, SwiftUI.Font.Weight?, accessorySymbolCustomSymbolImage: __C.UIImage?) case uiView(any CarPlayUI.GridView.Base.AccessoryView) } class Builder { let id: Swift.String let imageConfiguration: CarPlayUI.GridView.Base.ViewModel.ImageConfiguration var title: Swift.String? var titlePriority: CarPlayUI.GridView.Base.ViewModel.TitlePriority var subtitle: CarPlayUI.GridView.Base.ViewModel.Subtitle? var thumbnail: CarPlayUI.GridView.Thumbnail? var playback: CarPlayUI.GridView.Playback? var accessory: CarPlayUI.GridView.Base.ViewModel.Accessory? var allowsTouches: Swift.Bool var disabledAppearance: Swift.Bool var isPressed: Swift.Bool var canStayPressed: Swift.Bool var accessibilityLabel: Swift.String? var removeInnerHighlight: Swift.Bool var useAlternateStyling: Swift.Bool } enum Theme { case dark case light } let id: Swift.String // synthesized from the storage `_title` that @Observable generated; the property's own accessors are stripped var title: Swift.String // synthesized from the storage `_subtitle` that @Observable generated; the property's own accessors are stripped var subtitle: CarPlayUI.GridView.Base.ViewModel.Subtitle? // synthesized from the storage `_titlePriority` that @Observable generated; the property's own accessors are stripped var titlePriority: CarPlayUI.GridView.Base.ViewModel.TitlePriority // synthesized from the storage `_imageConfiguration` that @Observable generated; the property's own accessors are stripped var imageConfiguration: CarPlayUI.GridView.Base.ViewModel.ImageConfiguration // synthesized from the storage `_thumbnail` that @Observable generated; the property's own accessors are stripped var thumbnail: CarPlayUI.GridView.Thumbnail? // synthesized from the storage `_playback` that @Observable generated; the property's own accessors are stripped var playback: CarPlayUI.GridView.Playback? // synthesized from the storage `_accessory` that @Observable generated; the property's own accessors are stripped var accessory: CarPlayUI.GridView.Base.ViewModel.Accessory? // synthesized from the storage `_allowsTouches` that @Observable generated; the property's own accessors are stripped var allowsTouches: Swift.Bool // synthesized from the storage `_disabledAppearance` that @Observable generated; the property's own accessors are stripped var disabledAppearance: Swift.Bool // synthesized from the storage `_isPressed` that @Observable generated; the property's own accessors are stripped var isPressed: Swift.Bool // synthesized from the storage `_canStayPressed` that @Observable generated; the property's own accessors are stripped var canStayPressed: Swift.Bool // synthesized from the storage `_accessibilityLabel` that @Observable generated; the property's own accessors are stripped var accessibilityLabel: Swift.String? // synthesized from the storage `_removeInnerHighlight` that @Observable generated; the property's own accessors are stripped var removeInnerHighlight: Swift.Bool // synthesized from the storage `_useAlternateStyling` that @Observable generated; the property's own accessors are stripped var useAlternateStyling: Swift.Bool // synthesized from the storage `_action` that @Observable generated; the property's own accessors are stripped var action: () -> () init(id: Swift.String, title: Swift.String, subtitle: CarPlayUI.GridView.Base.ViewModel.Subtitle?, titlePriority: CarPlayUI.GridView.Base.ViewModel.TitlePriority, imageConfiguration: CarPlayUI.GridView.Base.ViewModel.ImageConfiguration, thumbnail: CarPlayUI.GridView.Thumbnail?, playback: CarPlayUI.GridView.Playback?, accessory: CarPlayUI.GridView.Base.ViewModel.Accessory?, allowsTouches: Swift.Bool, disabledAppearance: Swift.Bool, isPressed: Swift.Bool, canStayPressed: Swift.Bool, accessibilityLabel: Swift.String?, removeInnerHighlight: Swift.Bool, useAlternateStyling: Swift.Bool, action: @escaping () -> ()) func update(with: CarPlayUI.GridView.Base.ViewModel) init(id: Swift.String, title: Swift.String, symbolName: Swift.String?, imageConfiguration: CarPlayUI.GridView.Base.ViewModel.ImageConfiguration, allowsTouches: Swift.Bool, disabledAppearance: Swift.Bool, action: @escaping () -> ()) init(id: Swift.String, title: Swift.String, subtitle: Swift.String?, imageConfiguration: CarPlayUI.GridView.Base.ViewModel.ImageConfiguration, accessory: CarPlayUI.GridView.Base.ViewModel.Accessory?, allowsTouches: Swift.Bool, disabledAppearance: Swift.Bool, action: @escaping () -> ()) final var cornerRadius: CoreGraphics.CGFloat { get } deinit } class BaseDataSource<A> where A: CarPlayUI.GridView.Base.Cell { var viewModels: [CarPlayUI.GridView.Base.ViewModel] var preAction: (() -> ())? init(viewModels: [CarPlayUI.GridView.Base.ViewModel]) func numberOfViews() -> Swift.UInt func update(cell: __C.UIView, atIndex: Swift.UInt) func model(atIndex: Swift.UInt) -> CarPlayUI.GridView.Base.ViewModel func view(atIndex: Swift.UInt) -> __C.UIView deinit } class BaseView<A>: SwiftUI._UIHostingView<A> where A: CarPlayUI.GridView.Base.Cell { let viewModel: CarPlayUI.GridView.Base.ViewModel deinit } struct AccessoryViewHostingView { let hostedView: any CarPlayUI.GridView.Base.AccessoryView } struct Artwork { struct SystemImage { let name: Swift.String let scale: SwiftUI.Image.Scale? let weight: SwiftUI.Font.Weight? // synthesized from the backing storage `_environmentImageScale`; the property's own accessors are stripped @SwiftUI.Environment var environmentImageScale: SwiftUI.Image.Scale { get } } let image: CarPlayUI.GridView.Base.ViewModel.ImageConfiguration.Image } struct Placeholder { let placeholder: CarPlayUI.GridView.Base.ViewModel.ImageConfiguration.Image.Placeholder let color: SwiftUI.Color // synthesized from the backing storage `_environmentImageScale`; the property's own accessors are stripped @SwiftUI.Environment var environmentImageScale: SwiftUI.Image.Scale { get } } class ViewModelStorage { let viewModel: CarPlayUI.GridView.Base.ViewModel } protocol AccessoryView: __C.UIView { var isHighlighted: Swift.Bool { get set } } protocol Layout: CarPlayUI.GridView.Layout { var maximumNumberOfLinesOverride: Swift.UInt? { get } } protocol DataSource: CarPlayUI.GridView.DataSource { var preAction: (() -> ())? { get set } var viewModels: [CarPlayUI.GridView.Base.ViewModel] { get set } } protocol Cell: SwiftUI.View { init(viewModel: CarPlayUI.GridView.Base.ViewModel) } }