Don't show empty alt text.

This commit is contained in:
Marcin Czachursk 2023-03-08 18:28:17 +01:00
parent 0b30cfaf7f
commit de2eb97564
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ struct LabelIcon: View {
let value: String?
var body: some View {
if let value {
if let value, value.isEmpty == false {
HStack(alignment: .center) {
Image(systemName: iconName)
.frame(width: 24, alignment: .center)