SegueHandlerType
protocol SegueHandlerType
Use in view controllers:
1) Have view controller conform to SegueHandlerType
2) Add enum SegueIdentifier: String { }
to conformance
3) Manual segues are trigged by performSegue(with:sender:)
4) prepare(for:sender:)
does a switch segueIdentifier(for: segue)
to select the appropriate segue case
-
Undocumented
Declaration
Swift
associatedtype SegueIdentifier : RawRepresentable
-
performSegue(withIdentifier:sender:)
Extension methodUndocumented
Declaration
Swift
func performSegue(withIdentifier identifier: SegueIdentifier, sender: Any?)
-
segueIdentifier(for:)
Extension methodUndocumented
Declaration
Swift
func segueIdentifier(for segue: UIStoryboardSegue) -> SegueIdentifier