Structures
The following structures are available globally.
-
This struct represents the common implementation of the
TransitionProtocol. It is used in every of the providedBaseCoordinatorsubclasses and provides all transitions implemented in XCoordinator.Transitionsare defined by aTransition.Performclosure. It further provides different context information such asTransition.presentableandTransition.animation. You can create your own custom transitions usingTransition.init(presentable:animation:perform:)or use one of the many provided static functions to create the most common transitions.See moreNote
Transitions have a generic constraint to the rootViewController in use. Therefore, not all transitions are available in every coordinator. Make sure to specify theRootViewControllertype of theTransitionTypeof your coordinator as precise as possible to get all already available transitions.Declaration
Swift
public struct Transition<RootViewController> : TransitionProtocol where RootViewController : UIViewController
-
TransitionOptions specifies transition customization points defined at the point of triggering a transition.
You can use TransitionOptions to define whether or not a transition should be animated.
See moreNote
It might be extended in the future to enable more advanced customization options.Declaration
Swift
public struct TransitionOptions
-
UnownedErasedis a property wrapper to hold objects with an unowned reference when using type-erasure.Create this wrapper using an initial value and a closure to create the type-erased object. Make sure to not create an
See moreUnownedErasedwrapper for already type-erased objects, since their reference is most likely instantly lost.Declaration
Swift
@propertyWrapper public struct UnownedErased<Value> -
UnownedErasedis a property wrapper to hold objects with an unowned reference when using type-erasure.Create this wrapper using an initial value and a closure to create the type-erased object. Make sure to not create an
See moreUnownedErasedwrapper for already type-erased objects, since their reference is most likely instantly lost.
-
WeakErasedis a property wrapper to hold objects with a weak reference when using type-erasure.Create this wrapper using an initial value and a closure to create the type-erased object. Make sure to not create a
See moreWeakErasedwrapper for already type-erased objects, since their reference is most likely instantly lost.Declaration
Swift
@propertyWrapper public struct WeakErased<Value> -
WeakErasedis a property wrapper to hold objects with a weak reference when using type-erasure.Create this wrapper using an initial value and a closure to create the type-erased object. Make sure to not create a
See moreWeakErasedwrapper for already type-erased objects, since their reference is most likely instantly lost.
View on GitHub
Structures Reference