この記事でできるもの リストの中にリストを内包している感じのものが作れます. 実践 データモデルの実装 struct OutlineItem: Hashable, Identifiable { var id: Self { self } var value: String var children: [OutlineItem]? } リストに表示するデータの作成 let data = [OutlineItem(value: "おにぎりの具", children: childData1), OutlineItem(value: "サンドウィッチの具", children: childData2)…