Initializer

init(_:content:)

Creates a section with the provided section content.

Declaration 宣言

init(_ titleKey: LocalizedStringKey, content: () -> Content)
Available when Parent is Text, Content conforms to View, and Footer is EmptyView.

Parameters パラメータ

titleKey

The key for the section’s localized title, which describes the contents of the section.

content

The section’s content.

See Also 参照

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