Merge pull request #2608 from stuartbreckenridge/widget-improvements-ios
show the starred articles
This commit is contained in:
commit
721de75155
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue