mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Use WriteFreelyModel EnvironmentObject in CollectionListView
This commit is contained in:
parent
72319b1d6f
commit
18ce54bd89
@ -1,11 +1,11 @@
|
||||
import SwiftUI
|
||||
|
||||
struct CollectionListView: View {
|
||||
private var collections = CollectionListModel()
|
||||
@EnvironmentObject var model: WriteFreelyModel
|
||||
|
||||
var body: some View {
|
||||
List {
|
||||
ForEach(collections.collectionsList) { collection in
|
||||
ForEach(model.collections.collectionsList) { collection in
|
||||
NavigationLink(
|
||||
destination: PostListView(selectedCollection: collection)
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user