Mercurial > public > lazybear
diff LazyBear/Views/Company/Helpers/NewsHelper.swift @ 443:ffbb1dbab531
InsiderRosterHelper implemented
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Mon, 21 Jun 2021 20:17:46 +0200 |
parents | 6eae10397501 |
children | 7d1c4dc8d1d8 |
line wrap: on
line diff
--- a/LazyBear/Views/Company/Helpers/NewsHelper.swift Mon Jun 21 13:28:45 2021 +0200 +++ b/LazyBear/Views/Company/Helpers/NewsHelper.swift Mon Jun 21 20:17:46 2021 +0200 @@ -24,12 +24,11 @@ } .padding(.bottom) - ForEach(latestNews.prefix(4), id: \.self) { new in + let latestNewsPrefixed = latestNews.prefix(4) + ForEach(latestNewsPrefixed, id: \.self) { new in if !new.headline.isEmpty { NewsRow(new: new) Divider() - .padding(.leading, 80) - } } }