List {
Section(header: Text("テキスト")) {
ForEach(0..<self.pinned.count) {index in
NavigationLink(destination: ArrayView))}}{
Text("trash")
}
}
としArrayViewに遷移時に中のTextEditorにタップしたpinned内のテキストを入れたいのですが
struct ArrayView: View {
var body: some View {
textEditorText = pinned[index(id: .self)
}
}
でできません。
.selfがちがうのでしょうか
textEditorTextはTextEditorの引数として使っています