
Ich kann eine TipKit-Ansicht wie folgt erstellen
Code: Select all
struct NewFeatureTip: Tip {
var title: Text {
Text("Search!")
}
var message: Text? {
Text("Get a quick overview of everything important — best for tracking and managing at a glance.")
}
var image: Image? {
Image(systemName: "moon.stars")
}
var actions: [Action] {
Action(id: "next") {
//TODO:
print("button tapped")
} _: {
Text("Next")
.foregroundStyle(.green)
}
}
}
Code: Select all
let newFeatureTip = NewFeatureTip()
Text("Search")
.font(.system(size: 28, weight: .bold))
.foregroundColor(.white)
.popoverTip(newFeatureTip)

Mobile version