destination
Returns the destination associated with the outline.
Declaration
var destination: PDFDestination? { get set }Discussion
The root outline serves only as a container for the outlines it owns; it does not have a destination. Note that a PDFOutline object can have either a destination or an action, not both.
This method may return NULL if the outline has an associated action instead of a destination. Note that if the associated action is a PDFActionGoTo, this method returns the destination from the PDFActionGoTo object. However, it is better to use the action method for this purpose.