mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-24 08:00:38 +00:00
Don't show count when it's 0
This commit is contained in:
parent
c847de8f47
commit
a4cdc6fc18
1 changed files with 4 additions and 1 deletions
|
@ -213,9 +213,12 @@ struct StatusRowActionsView: View {
|
||||||
if !isNarrow,
|
if !isNarrow,
|
||||||
let count = action.count(dataController: statusDataController,
|
let count = action.count(dataController: statusDataController,
|
||||||
isFocused: isFocused,
|
isFocused: isFocused,
|
||||||
theme: theme), !viewModel.isRemote
|
theme: theme), !viewModel.isRemote,
|
||||||
|
count > 0
|
||||||
{
|
{
|
||||||
Text(count, format: .number.notation(.compactName))
|
Text(count, format: .number.notation(.compactName))
|
||||||
|
.lineLimit(1)
|
||||||
|
.minimumScaleFactor(0.6)
|
||||||
.contentTransition(.numericText(value: Double(count)))
|
.contentTransition(.numericText(value: Double(count)))
|
||||||
.foregroundColor(Color(UIColor.secondaryLabel))
|
.foregroundColor(Color(UIColor.secondaryLabel))
|
||||||
.font(.scaledFootnote)
|
.font(.scaledFootnote)
|
||||||
|
|
Loading…
Reference in a new issue