SegueHandler
public protocol SegueHandler
Protocol definition for objects that know about segues between UIView controllers. The protocol basically defines a type-safe way to translate from a UIStoryboardSegue.identifier value into a type-specific value (probably an enum)
-
Undocumented
Declaration
Swift
associatedtype SegueIdentifier : RawRepresentable
-
segueIdentifier(for:
Extension method) Obtain a segue identifier for a segue
Declaration
Swift
public func segueIdentifier(for segue: UIStoryboardSegue) -> SegueIdentifier
Parameters
segue
the segue to look for
Return Value
the identifier for the segue
-
performSegue(withIdentifier:
Extension methodsender: ) Perform a known segue transition between two view controllers
Declaration
Swift
public func performSegue(withIdentifier segueIdentifier: SegueIdentifier, sender: Any? = nil)
Parameters
segueIdentifier
the identifier of the segue to perform