Yep, that works. Here is the workaround:
@MainActor
func Button(_ str: String, image: ImageResource, action: @escaping () -> ()) -> some View {
Button(action: action) {
Label(str, image: image)
}
}
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: