The Crop to Selection command crops the active layer to the edge of the selection. Crop to Selection is a standard feature in Adobe PhotoShop and GIMP, but Affinity Photo apparently doesn't have it. But hey, there's a simple workaround...
+++ SOLIDBugs - SOLID Software Tips +++