Skip to content

Commit

Permalink
fix: Bookmarks weren't displaying on iOS (#195)
Browse files Browse the repository at this point in the history
I forgot to start/stop the `ItemView` when the view appears/disappears, meaning that it never loaded the contents. πŸ€¦πŸ»β€β™‚οΈ
  • Loading branch information
jbmorley authored Jul 27, 2021
1 parent 6161c9e commit e6dcd69
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ios/Bookmarks/Interface/BookmarksView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct BookmarksView: View {
}

@Environment(\.manager) var manager: BookmarksManager
@ObservedObject var databaseView: ItemsView
@StateObject var databaseView: ItemsView

@State var sheet: SheetType?

Expand Down Expand Up @@ -72,6 +72,12 @@ struct BookmarksView: View {
Image(systemName: "gearshape")
.foregroundColor(.accentColor)
})
.onAppear {
databaseView.start()
}
.onDisappear {
databaseView.stop()
}
}

}
Expand Down

0 comments on commit e6dcd69

Please sign in to comment.