📜  过滤文本列表 swiftui - Swift 代码示例

📅  最后修改于: 2022-03-11 15:01:00.439000             🧑  作者: Mango

代码示例1
ForEach(userData.bookList.filter {  return !$0.own }) { book in
    NavigationLink(destination: BookDetail(book: book)) { BookRow(book: book) }
}