Workaround for beta 5+.

This commit is contained in:
John Holdsworth
2019-08-29 11:49:04 +02:00
parent 0dcb82716d
commit 06ef2bc9b4
2 changed files with 2 additions and 1 deletions

View File

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

View File

@@ -13,6 +13,7 @@ struct VideoRow : View {
@EnvironmentObject var userData: UserData
var video: Video
var isFavorite = false
var body: some View {
HStack {