Merge pull request #2608 from stuartbreckenridge/widget-improvements-ios

show the starred articles
This commit is contained in:
Maurice Parker 2020-11-22 21:15:17 -06:00 committed by GitHub
commit 721de75155
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -37,10 +37,10 @@ struct StarredWidgetView : View {
ForEach(0..<maxCount(), content: { i in ForEach(0..<maxCount(), content: { i in
if i != 0 { if i != 0 {
ArticleItemView(article: entry.widgetData.starredArticles[i], ArticleItemView(article: entry.widgetData.starredArticles[i],
deepLink: WidgetDeepLink.starredArticle(id: entry.widgetData.todayArticles[i].id).url) deepLink: WidgetDeepLink.starredArticle(id: entry.widgetData.starredArticles[i].id).url)
.padding(.vertical, 4) .padding(.vertical, 4)
} else { } else {
ArticleItemView(article: entry.widgetData.unreadArticles[i], ArticleItemView(article: entry.widgetData.starredArticles[i],
deepLink: WidgetDeepLink.starredArticle(id: entry.widgetData.starredArticles[i].id).url) deepLink: WidgetDeepLink.starredArticle(id: entry.widgetData.starredArticles[i].id).url)
.padding(.bottom, 4) .padding(.bottom, 4)
} }