@@ -45,6 +45,11 @@ extension AnyWorkflowItem {
4545 public func modify( workflow: AnyWorkflow ) {
4646 storage. modify ( workflow: workflow)
4747 }
48+
49+ /// :nodoc: Protocol requirement.
50+ public func didDisplay( _ element: AnyWorkflow . Element ? ) -> Bool {
51+ storage. didDisplay ( element)
52+ }
4853}
4954
5055@available ( iOS 14 . 0 , macOS 11 , tvOS 14 . 0 , watchOS 7 . 0 , * )
@@ -59,6 +64,11 @@ fileprivate class AnyWorkflowItemStorageBase {
5964 fatalError ( " AnyWorkflowItemStorageBase called directly, only available internally so something has gone VERY wrong. " )
6065 }
6166
67+ // swiftlint:disable:next unavailable_function
68+ func didDisplay( _ element: AnyWorkflow . Element ? ) -> Bool {
69+ fatalError ( " AnyWorkflowItemStorageBase called directly, only available internally so something has gone VERY wrong. " )
70+ }
71+
6272 var workflowLaunchStyle : LaunchStyle . SwiftUI . PresentationType {
6373 fatalError ( " AnyWorkflowItemStorageBase called directly, only available internally so something has gone VERY wrong. " )
6474 }
@@ -79,6 +89,10 @@ fileprivate final class AnyWorkflowItemStorage<Wrapped: _WorkflowItemProtocol>:
7989 holder. modify ( workflow: workflow)
8090 }
8191
92+ override func didDisplay( _ element: AnyWorkflow . Element ? ) -> Bool {
93+ holder. didDisplay ( element)
94+ }
95+
8296 override var workflowLaunchStyle : LaunchStyle . SwiftUI . PresentationType {
8397 holder. workflowLaunchStyle
8498 }
0 commit comments