PagedMediaDelegate
public protocol PagedMediaDelegate : AnyObject
Delegate for transition and item change events.
-
Called just before the transition to a new item begins. Useful for centering table/collection view items behind the scenes for proper transition animation.
Declaration
Swift
func pagedMediaViewController(_ pagedMediaViewController: PagedMediaViewController, willTransitionTo index: Int)
-
Called after the transition to a new item is completed.
Declaration
Swift
func pagedMediaViewController(_ pagedMediaViewController: PagedMediaViewController, didTransitionTo toIndex: Int, fromIndex: Int)
-
Called just before the transition ends. Perfect time to unpause the original view at index.
Declaration
Swift
func pagedMediaViewController(_ pagedMediaViewController: PagedMediaViewController, willDismissToOriginalViewAt index: Int, fromPagedMediaItem mediaItem: PagedMediaItem)