I am trying to experiment with Apple's new feature called TipKit and create sample Tips for my app prior to iOS 17 release this fall. However, I am unable to compile the program.
I downloaded Xcode 15.4 beta and I tried creating a struct using the sample code found from https://developer.apple.com/videos/play/wwdc2023/10229/?time=323:
struct FavoriteBackyardTip: Tip {
var title: Text {
Text("Save as a Favorite")
}
var message: Text {
Text("Your favorite backyards always appear at the top of the list.")
}
}
The compiler immediately does not recognize the Tip class and throws an error. I need to subclass Tip in SwiftUI just like I would with View if I were creating a normal view. I am under the impression TipKit has not been added to Xcode 15.4 beta and that I need to wait. If it has not been added, when will it be added? When is the next beta release planned for? It is also possible I am missing an import statement, although I did try and was unable to find anything (I assume that I won't need an import).
Has anyone else been able to successfully test out a Tip for their app?
Additionally, I want to integrate TipKit with UIKit and wondered if that is possible, and if so, how to do it.
Any information on TipKit would be appreciated!