SwiftstructCarPlayUI

struct CarPlayUI.GridView.Hero.Cell

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 7

  1. funcstatic formatDuration(Double) -> String?
  2. funcstatic formatRemainingDuration(total: Double, progress: Float?) -> String?
  3. fieldvar _systemColorScheme: SwiftUI.Environment<SwiftUI.ColorScheme>
  4. fieldlet viewModel: CarPlayUI.GridView.Base.ViewModel+0x0
  5. initinit(viewModel: CarPlayUI.GridView.Base.ViewModel) -> CarPlayUI.GridView.Hero.Cell
  6. typealiastypealias Body = SwiftUI._ConditionalContent<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.Button<CarPlayUI.GridView.Hero.Cell.Content>, SwiftUI.ButtonStyleContainerModifier<CarPlayUI.GridView.Hero.Cell.ButtonStyle>>, SwiftUI._OpacityEffect>, SwiftUI._EnvironmentKeyTransformModifier<Swift.Bool>>, SwiftUI._OverlayModifier<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.Color, SwiftUI._ContentShapeModifier<SwiftUI.Rectangle>>, SwiftUI.TapGestureModifier>>>, SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.Button<CarPlayUI.GridView.Hero.Cell.Content>, SwiftUI.ButtonStyleContainerModifier<CarPlayUI.GridView.Hero.Cell.ButtonStyle>>, SwiftUI._OpacityEffect>, SwiftUI._EnvironmentKeyTransformModifier<Swift.Bool>>>
  7. varvar body: some SwiftUI.View { get }
struct CarPlayUI.GridView.Hero.Cell {
    struct Labels {
        enum Overlay {
            case sports(leftTeam: CarPlayUI.GridView.Hero.Cell.Team, rightTeam: CarPlayUI.GridView.Hero.Cell.Team, eventStatusText: Swift.String)
            case progress(title: Swift.String, subtitle: Swift.String?, progress: Swift.Float?, progressSymbolName: Swift.String?, duration: Swift.Double?, useAlternateStyling: Swift.Bool)
            case hero(title: Swift.String?, subtitle: CarPlayUI.GridView.Base.ViewModel.Subtitle?, priority: CarPlayUI.GridView.Base.ViewModel.TitlePriority, useAlternateStyling: Swift.Bool)
        }
        let overlay: CarPlayUI.GridView.Hero.Cell.Labels.Overlay
    }
    struct Content {
        let viewModel: CarPlayUI.GridView.Base.ViewModel
        let systemColorScheme: SwiftUI.ColorScheme
        // synthesized from the backing storage `_colorScheme`; the property's own accessors are stripped
        @SwiftUI.Environment var colorScheme: SwiftUI.ColorScheme {
            get
        }

        init(viewModel: CarPlayUI.GridView.Base.ViewModel, systemColorScheme: SwiftUI.ColorScheme)

        var body: some SwiftUI.View {
            get
        }
    }
    struct ButtonStyle {
        let theme: CarPlayUI.GridView.Base.ViewModel.Theme
        let hasThumbnail: Swift.Bool
        let removeInnerHighlight: Swift.Bool
        // synthesized from the backing storage `_colorScheme`; the property's own accessors are stripped
        @SwiftUI.Environment var colorScheme: SwiftUI.ColorScheme {
            get
        }

        func makeBody(configuration: SwiftUI.ButtonStyleConfiguration) -> some SwiftUI.View
    }
    struct HeroLabelsView {
        let title: Swift.String?
        let subtitle: CarPlayUI.GridView.Base.ViewModel.Subtitle?
        let priority: CarPlayUI.GridView.Base.ViewModel.TitlePriority
        let useAlternateStyling: Swift.Bool
    }
    struct ImageOverlay {
        let image: SwiftUI.Image?
        let text: Swift.String?
        let textColor: SwiftUI.Color?
        let backgroundColor: SwiftUI.Color?
        let alignment: __C.CPUIImageOverlayAlignment?
    }
    struct ProgressLabelsView {
        let title: Swift.String?
        let subtitle: Swift.String?
        let progress: Swift.Float?
        let progressSymbolName: Swift.String?
        let duration: Swift.Double?
        let useAlternateStyling: Swift.Bool
    }
    struct SportsLabelsView {
        let leftTeam: CarPlayUI.GridView.Hero.Cell.Team
        let rightTeam: CarPlayUI.GridView.Hero.Cell.Team
        let eventStatusText: Swift.String?
    }
    struct ScoreBox {
        let team: CarPlayUI.GridView.Hero.Cell.Team
        let isLeftTeam: Swift.Bool
    }
    struct Team {
        let image: SwiftUI.Image?
        let label: Swift.String?
        let score: Swift.String?
        let scoreColor: SwiftUI.Color?
        let favorite: Swift.Bool
    }
    let viewModel: CarPlayUI.GridView.Base.ViewModel
    // synthesized from the backing storage `_systemColorScheme`; the property's own accessors are stripped
    @SwiftUI.Environment var systemColorScheme: SwiftUI.ColorScheme {
        get
    }

    init(viewModel: CarPlayUI.GridView.Base.ViewModel)

    var body: some SwiftUI.View {
        get
    }

    static func formatDuration(_: Swift.Double) -> Swift.String?
    static func formatRemainingDuration(total: Swift.Double, progress: Swift.Float?) -> Swift.String?
}