Loadability Documentation Beta

Protocol Loadable​View

public protocol LoadableView: View

A View that loads content through a Loader.

%3 LoadableView LoadableView View View LoadableView->View

Conforms To

View

Requirements

key

var key: Loader.Key

The key identifying the object to load.

key​Path

var keyPath: ValueKeyPath?

The key path of the value on the loaded object, defaults to nil.

loader

var loader: Loader

The loader used to load content.

placeholder()

func placeholder() -> Placeholder

The placeholder to show while loading.

body(with:​)

func body(with value: Value) -> Content

Creates a view using loaded content.

Parameters

value Value

Loaded content.