Link Search Menu Expand Document

ListContentConfiguration

A content configuration for a list-based content view.

public struct ListContentConfiguration 

Inheritance

ContentConfiguration, CustomDebugStringConvertible, CustomReflectable, CustomStringConvertible, Hashable

Properties

image

The image to display.

public var image: Image?

text

The primary text.

public var text: String?

attributedText

An attributed variant of the primary text.

public var attributedText: NSAttributedString?

secondaryText

The secondary text.

public var secondaryText: String?

secondaryAttributedText

An attributed variant of the secondary text.

public var secondaryAttributedText: NSAttributedString?

imageProperties

Properties for configuring the image.

public var imageProperties: ListContentConfiguration.ImageProperties

textProperties

Properties for configuring the primary text.

public var textProperties: ListContentConfiguration.TextProperties

secondaryTextProperties

Properties for configuring the secondary text.

public var secondaryTextProperties: ListContentConfiguration.TextProperties

axesPreservingSuperviewLayoutMargins

A boolean value that detemines whether the content view preserves the layout margins that it inherits from its superview on the horizontal or vertical axes.

public var axesPreservingSuperviewLayoutMargins: Axis = .both

directionalLayoutMargins

The margins between the content and the edges of the content view.

public var directionalLayoutMargins: DirectionalEdgeInsets

prefersSideBySideTextAndSecondaryText

A boolean value that detemines whether the configuration positions the text and secondary text side by side.

public var prefersSideBySideTextAndSecondaryText: Bool

imageToTextPadding

The padding between the image and text.

public var imageToTextPadding: Double

textToSecondaryTextHorizontalPadding

The minimum horizontal padding between the text and secondary text.

public var textToSecondaryTextHorizontalPadding: Double

textToSecondaryTextVerticalPadding

The vertical padding between the text and secondary text.

public var textToSecondaryTextVerticalPadding: Double

description

public var description: String 

debugDescription

public var debugDescription: String 

customMirror

public var customMirror: Mirror 

Methods

cell()

Creates the default configuration for a list cell.

public static func cell() -> ListContentConfiguration 

subtitleCell()

Creates the default configuration for a list cell with subtitle text.

public static func subtitleCell() -> ListContentConfiguration 

valueCell()

Creates the default configuration for a list cell with side-by-side value text.

public static func valueCell() -> ListContentConfiguration 

plainHeader()

Creates the default configuration for a plain list header.

public static func plainHeader() -> ListContentConfiguration 

plainFooter()

Creates the default configuration for a plain list footer.

public static func plainFooter() -> ListContentConfiguration 

groupedHeader()

Creates the default configuration for a grouped list header.

public static func groupedHeader() -> ListContentConfiguration 

groupedFooter()

Creates the default configuration for a grouped list footer.

public static func groupedFooter() -> ListContentConfiguration 

sidebarCell()

Creates the default configuration for a sidebar list cell.

public static func sidebarCell() -> ListContentConfiguration 

sidebarSubtitleCell()

Creates the default configuration for a sidebar list cell with subtitle text.

public static func sidebarSubtitleCell() -> ListContentConfiguration 

sidebarHeader()

Creates the default configuration for a sidebar list header.

public static func sidebarHeader() -> ListContentConfiguration 

accompaniedSidebarCell()

Creates the default configuration for an accompanied sidebar list cell.

public static func accompaniedSidebarCell() -> ListContentConfiguration 

accompaniedSidebarSubtitleCell()

Creates the default configuration for an accompanied sidebar list cell with subtitle text.

public static func accompaniedSidebarSubtitleCell()
      -> ListContentConfiguration 

makeContentView()

Creates a new instance of the content view using this configuration.

public func makeContentView() -> View & ContentView 

updated(for:)

Generates a configuration for the specified state by applying the configuration’s default values for that state to any properties that you haven’t customized.

public func updated(for state: ConfigurationState) -> ListContentConfiguration 

hash(into:)

public func hash(into hasher: inout Hasher) 

Operators

==

public static func ==(_ lhs: ListContentConfiguration,
                        _ rhs: ListContentConfiguration) -> Bool