Hi folks, I'm trying to implement TipKits to understand more better but I'm facing an error while trying to use @Parameter macro.
Here is the sample code that I've tried as showed on instruction videos below
struct FavoriteLandmarkTip: Tip {
@Parameter
static var isLoggedIn: Bool = false
var title: Text {
Text("Save as Favourite")
}
var message: Text? {
Text("Your favorite landmarks always appear at the top of the list.")
}
var asset: Image? {
Image(systemName: "star")
}
var actions: [Action] {
[
Tip.Action(
id: "learn-more",
title: "Learn More"
),
]
}
}
But I'm getting this error for isLoggedIn property
External macro implementation type 'TipKitMacros.ParameterMacro' could not be found for macro 'Parameter(isTransient:customID:)'; the type must be public and provided by a macro target in a Swift package, or via '-plugin-path' or '-load-plugin-library'
Could you help me to solve this problem ?