One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

EmptyContent

typealias · iOS 13.0+ · SDK 27.1

typealias EmptyContent = EmptyView

Content which contains nothing. You will rarely, if ever, need to create an `EmptyContent` directly. Instead, `EmptyContent` represents the absence of content. This type should be conformed to builder DSL protocols to represent empty content in that DSL. DSLs should use `EmptyContent` in situations where a content type defines one or more children with generic parameters, and allows the child content to be absent. When absent, the child content's type in the generic type parameter is `EmptyContent`. `ContentBuilder` also returns `EmptyContent` from `buildBlock()`. `EmptyContent` defines a `body` property of type `Never` to improve the ergonomics of conforming to multiple DSL protocols, which should all use `Never` as the universal "primitive body" type.

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →