Skip to content

Commit 071d920

Browse files
committed
Resize image in EditableLabel
1 parent 2bdb3fa commit 071d920

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Sources/ProjectNavigator/EditableLabel.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@ public struct EditableLabel: View {
8080

8181
} else { Text(text) }
8282

83-
} icon: { image }
83+
} icon: {
84+
image
85+
.resizable()
86+
.scaledToFit()
87+
}
8488
}
8589
}
8690

0 commit comments

Comments
 (0)