Hi freddythefreeloader,
Welcome to Affinity Forums :)
First you have to set up iPhoto:
1. Go to iPhoto ▸ Preferences, Advanced tab, click on Edit Photos: dropdown and select Affinity Photo from the dialog.
2. Make sure Use RAW when using external editor is unchecked, otherwise iPhoto will lose track of the image since Affinity can't save directly the changes from the Develop Persona.
Now when you want to edit an image in iPhoto's Library, right-click on the image there and select Edit in External Editor. Affinity Photo will open with the image ready to be edited. Edit your image then do a File ▸ Save. Press the Save Flattened button (you have to save a flattened photo, since iPhoto doesn't support our native format (.afphoto) which is the format selected if you do a Save As). The image will be updated in iPhoto.