diff --git a/Budget/Budget/BudgetListsView.swift b/Budget/Budget/BudgetListsView.swift index 49d63fa..14417c1 100644 --- a/Budget/Budget/BudgetListsView.swift +++ b/Budget/Budget/BudgetListsView.swift @@ -54,10 +54,12 @@ struct BudgetListItemView: View { VStack(alignment: .leading) { Text(verbatim: budget.name) .lineLimit(1) - Text(verbatim: budget.description ?? "") - .font(.subheadline) - .lineLimit(1) - .foregroundColor(.secondary) + if budget.description?.isEmpty == false { + Text(verbatim: budget.description!) + .font(.subheadline) + .foregroundColor(.secondary) + .lineLimit(1) + } } } } diff --git a/Budget/Category/CategoryListView.swift b/Budget/Category/CategoryListView.swift index 4efa055..bee6c99 100644 --- a/Budget/Category/CategoryListView.swift +++ b/Budget/Category/CategoryListView.swift @@ -50,8 +50,12 @@ struct CategoryListItemView: View { ) { VStack(alignment: .leading) { Text(verbatim: category.title) - Text(verbatim: category.description ?? "") - .foregroundColor(.gray) + if category.description?.isEmpty == false { + Text(verbatim: category.description!) + .font(.subheadline) + .foregroundColor(.secondary) + .lineLimit(1) + } } } }