Increase padding and add a separator between articles in the Widgets.

This commit is contained in:
Maurice Parker 2020-11-22 21:21:19 -06:00
parent 5abe9a9248
commit 8a706adc32
3 changed files with 6 additions and 9 deletions

View File

@ -31,14 +31,13 @@ struct StarredWidgetView : View {
.frame(width: metrics.size.width * 0.15)
.padding(.trailing, 4)
Divider()
VStack(alignment:.leading, spacing: 0) {
ForEach(0..<maxCount(), content: { i in
if i != 0 {
Divider()
ArticleItemView(article: entry.widgetData.starredArticles[i],
deepLink: WidgetDeepLink.starredArticle(id: entry.widgetData.todayArticles[i].id).url)
.padding(.vertical, 4)
.padding(.vertical, 6)
} else {
ArticleItemView(article: entry.widgetData.unreadArticles[i],
deepLink: WidgetDeepLink.starredArticle(id: entry.widgetData.starredArticles[i].id).url)

View File

@ -31,14 +31,13 @@ struct TodayWidgetView : View {
.frame(width: metrics.size.width * 0.15)
.padding(.trailing, 4)
Divider()
VStack(alignment:.leading, spacing: 0) {
ForEach(0..<maxCount(), content: { i in
if i != 0 {
Divider()
ArticleItemView(article: entry.widgetData.todayArticles[i],
deepLink: WidgetDeepLink.todayArticle(id: entry.widgetData.todayArticles[i].id).url)
.padding(.vertical, 4)
.padding(.vertical, 6)
} else {
ArticleItemView(article: entry.widgetData.unreadArticles[i],
deepLink: WidgetDeepLink.todayArticle(id: entry.widgetData.todayArticles[i].id).url)

View File

@ -31,14 +31,13 @@ struct UnreadWidgetView : View {
.frame(width: metrics.size.width * 0.15)
.padding(.trailing, 4)
Divider()
VStack(alignment:.leading, spacing: 0) {
ForEach(0..<maxCount(), content: { i in
if i != 0 {
Divider()
ArticleItemView(article: entry.widgetData.unreadArticles[i],
deepLink: WidgetDeepLink.unreadArticle(id: entry.widgetData.unreadArticles[i].id).url)
.padding(.vertical, 4)
.padding(.vertical, 6)
} else {
ArticleItemView(article: entry.widgetData.unreadArticles[i],
deepLink: WidgetDeepLink.unreadArticle(id: entry.widgetData.unreadArticles[i].id).url)