The initializer for CellAction now takes a PreviewingViewControllerAction closure for the previewingViewControllerAction argument. Implementors of this closure are expected to call previewingContext.sourceRect = previewingContext.sourceView.convert(cell.bounds, from: cell).
Since I imagine the majority of use cases for PreviewingViewControllerAction will behave the same way, it would be nice if we could have the nominal path for this do the sourceRect assignment automatically.
The initializer for
CellAction
now takes aPreviewingViewControllerAction
closure for thepreviewingViewControllerAction
argument. Implementors of this closure are expected to callpreviewingContext.sourceRect = previewingContext.sourceView.convert(cell.bounds, from: cell)
.Since I imagine the majority of use cases for
PreviewingViewControllerAction
will behave the same way, it would be nice if we could have the nominal path for this do thesourceRect
assignment automatically.