comparison 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
comparison
equal deleted inserted replaced
442:6eae10397501 443:ffbb1dbab531
22 Spacer() 22 Spacer()
23 Button("See all", action: { showList = true } ) 23 Button("See all", action: { showList = true } )
24 } 24 }
25 .padding(.bottom) 25 .padding(.bottom)
26 26
27 ForEach(latestNews.prefix(4), id: \.self) { new in 27 let latestNewsPrefixed = latestNews.prefix(4)
28 ForEach(latestNewsPrefixed, id: \.self) { new in
28 if !new.headline.isEmpty { 29 if !new.headline.isEmpty {
29 NewsRow(new: new) 30 NewsRow(new: new)
30 Divider() 31 Divider()
31 .padding(.leading, 80)
32
33 } 32 }
34 } 33 }
35 } 34 }
36 .padding() 35 .padding()
37 .background( 36 .background(