@available(iOS 17, *)
struct DetailsTappableItemsTip: Tip {
static let viewedDetails: Event = Event(id: "viewedDetails")
var title: Text {
Text("Learn More About This")
}
var message: Text? {
Text("Tip text here.")
}
var image: Image? {
Image(.icInfo)
}
var rules: [Rule] {
#Rule(Self.viewedDetails) {
$0.donations
.filter { $0.date < Date.now.addingTimeInterval(-1 * 60 * 60 * 24) }
.count > 0
}
}
}
Topic:
App & System Services
SubTopic:
General
Tags: