Multicolor SF symbols are black in iOS 15 widget. (have a look at the attached pictures 14.5 vs 15.0)
this is how it looks in the code:
Image(uiImage: UIImage(systemName: getIconName(iconId: iconId))!) .resizable().scaledToFit() .frame(width: 20)
Playing around with .renderingMode() doesn't help. Only when I set it to .template and set some color, but I need it to be as it was - multicolor. Is this a bug or a feature ?
Post
Replies
Boosts
Views
Activity
View with .cornerRadius() set is not being shown. Background should be red with round corner, but it's not visible (like it was transparent), content (text and image) is visible
VStack {
Text("text")
Image("image")
}
.background(Color.red)
.cornerRadius(5)