when i pass an interpolated string with Image into a Text view, it returns incorrectly.
import SwiftUI
struct UserMediaCell: View {
var body: some View {
subView(label:"\(Image(systemName: "ellipsis"))")
// shows incorrectly:
// Image(provider: SwiftUI.ImageProviderBox<SwiftUI.Image.(unknown context at $18c350410).NamedImageProvider>)
Text("\(Image(systemName: "ellipsis"))")
// shows correctly. (sf symbol visible)
}
}
struct subView: View {
@State var label: String
var body: some View {
Text(label)
}
}
how do i solve this?