@melsam What would be the SwiftUI equivalent for a popover tip?
Given the following tip:
struct PopeoverTip: Tip {
var title: Text {
Text("Select language")
.foregroundStyle(.white)
.font(.title)
.fontDesign(.serif)
.bold()
}
var message: Text? {
Text("Select the language you want to learn!")
.foregroundStyle(.white)
.fontDesign(.monospaced)
}
var image: Image? {
Image(systemName: "book.circle")
}
}
attempting to show the tip as a popover e.g.
someView
.popoverTip(InlineTip(), arrowEdge: .top)
works great for text and message, but attempting to change the Image color fails. Specifically, code like the following fails to compile:
struct PopeoverTip: Tip {
////
......
////
var image: Image? {
Image(systemName: "book.circle")
.foregroundStyle(Color.pink)
}
}
with Cannot convert return expression of type 'some View' to return type 'Image?'
Thanks!