Use WriteFreelyModel EnvironmentObject in CollectionListView

This commit is contained in:
Angelo Stavrow 2020-08-25 11:28:52 -04:00
parent 72319b1d6f
commit 18ce54bd89
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -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)
) {