Mercurial > public > lazybear
diff LazyBear/Views/Global Helpers/StockRow.swift @ 388:79c39987aaa4
Implementing Watchlists in ProfileView
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Sat, 24 Apr 2021 17:44:02 +0200 |
parents | a7e2c5a7b4f6 |
children | 5f21f7c23c5e |
line wrap: on
line diff
--- a/LazyBear/Views/Global Helpers/StockRow.swift Sat Apr 24 12:21:23 2021 +0200 +++ b/LazyBear/Views/Global Helpers/StockRow.swift Sat Apr 24 17:44:02 2021 +0200 @@ -15,6 +15,7 @@ var addOnDelete: Bool @State private var showExtensiveList = false + @Environment(\.managedObjectContext) private var moc var body: some View { VStack(alignment: .leading) { @@ -50,6 +51,8 @@ .padding(.bottom) .sheet(isPresented: $showExtensiveList) { ExtensiveList(listName: listName, list: list, intradayPrices: intradayPrices, latestCurrencies: nil, addOnDelete: addOnDelete) + .environment(\.managedObjectContext, self.moc) + } } }