SettingsPaneContext
Context passed to makeSettingsPane(context:).
struct SettingsPaneContext
Initializers
init(presentation:preferredContentWidth:)
init(presentation: SettingsPanePresentation, preferredContentWidth: CGFloat? = nil)
Creates a context. Constructed by hosts, read by droplets.
Properties
preferredContentWidth
let preferredContentWidth: CGFloat?
Width the host lays the pane out at, when known. Panes should fill the proposed width and never hardcode their own.
presentation
let presentation: SettingsPanePresentation
The surface presenting the pane.