Initializer

init(_:content:)

Creates a section with the provided section content.

Declaration 宣言

init<S>(_ title: S, content: () -> Content) where S : StringProtocol
Available when Parent is Text, Content conforms to View, and Footer is EmptyView.

Parameters パラメータ

title

A string that describes the contents of the section.

content

The section’s content.

See Also 参照

Creating a Section セクションを作成する