From 06ef2bc9b43e8e1ca1ac3a996cb01ce8bbcf2b30 Mon Sep 17 00:00:00 2001 From: John Holdsworth Date: Thu, 29 Aug 2019 11:49:04 +0200 Subject: [PATCH] Workaround for beta 5+. --- Other Projects/WWDCPlayer/WWDCPlayer/MainView.swift | 2 +- Other Projects/WWDCPlayer/WWDCPlayer/VideoRow.swift | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Other Projects/WWDCPlayer/WWDCPlayer/MainView.swift b/Other Projects/WWDCPlayer/WWDCPlayer/MainView.swift index 98ab22c..0e88484 100755 --- a/Other Projects/WWDCPlayer/WWDCPlayer/MainView.swift +++ b/Other Projects/WWDCPlayer/WWDCPlayer/MainView.swift @@ -62,7 +62,7 @@ struct VideoListView : View { Section(header: Text(day.rawValue.uppercased()).fontWeight(.bold)) { ForEach(self.userData.videos.filter { $0.weekDay == day }) { video in if !self.userData.showFavoriteOnly || video.isFavorite { - VideoRow(video: video) + VideoRow(video: video, isFavorite: video.isFavorite) } } } diff --git a/Other Projects/WWDCPlayer/WWDCPlayer/VideoRow.swift b/Other Projects/WWDCPlayer/WWDCPlayer/VideoRow.swift index d5bb65d..bd8f9aa 100755 --- a/Other Projects/WWDCPlayer/WWDCPlayer/VideoRow.swift +++ b/Other Projects/WWDCPlayer/WWDCPlayer/VideoRow.swift @@ -13,6 +13,7 @@ struct VideoRow : View { @EnvironmentObject var userData: UserData var video: Video + var isFavorite = false var body: some View { HStack {