A timeline in RCP will post a notification "Identifier: Completed" when it finishes playing
I am trying to receive this in the following way:
extension Notification.Name {
static let notifyOnAnimationCompleted = Notification.Name("Completed")
}
// in the view
private let AnimationCompleted = NotificationCenter.default.publisher(for: .notifyOnAnimationCompleted)
RealityView {...}
.onReceive(AnimationCompleted)
{ _ in
print("End")
}
This was once working back to July, but it never prints "End" for now