Mercurial > public > lazybear
comparison LazyBear/Views/Company/Helpers/NewsRow.swift @ 448:f71761f166f2
Handle when data is empty
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Wed, 23 Jun 2021 11:47:14 +0200 |
parents | 8621ba6fd457 |
children |
comparison
equal
deleted
inserted
replaced
447:8621ba6fd457 | 448:f71761f166f2 |
---|---|
20 | 20 |
21 Text(new.headline.capitalized) | 21 Text(new.headline.capitalized) |
22 .font(.headline) | 22 .font(.headline) |
23 .fontWeight(.semibold) | 23 .fontWeight(.semibold) |
24 .fixedSize(horizontal: false, vertical: true) /// I need to add this to make lineLimit works correctly | 24 .fixedSize(horizontal: false, vertical: true) /// I need to add this to make lineLimit works correctly |
25 .lineLimit(3) | 25 .lineLimit(2) |
26 } | 26 } |
27 | 27 |
28 Spacer() | 28 Spacer() |
29 | 29 |
30 Button(action: { showWebArticle = true }) { | 30 Button(action: { showWebArticle = true }) { |