Affinity photo 2 recognizes a large number of Canon lenses automatically so that corrections for lens flaws can be made automatically or also modified manually. However some RF lenses are not recognized because the lens Exif-Metadata is not showing the lens info but just a number. For example for the Canon RF 50mm F1.8 the number 280 is displayed, for RF16mm F1.8 the number is 288 and for the RFs 18-150mm F1.8 the number is 286. Note that in the Affinity Detail-Metadata the lens info is correct for these lenses so this a genuine bug in Affinity photo 2 that needs to corrected. Note that some RF lenses are correctly recognized by Affinity e.g. the RF 35mm F1.8.
For fixing this problem for the 3 lenses mentioned above, attached an .xml file that corrects this problem. The file needs to be added to the lens profile folder of Affinity which can be accessed by opening Preferences (in Windows under Edit), General and select "Open Lens profiles in Explorer" which opens a window in which the .xml file needs to be copied. After restarting Affinity the 3 lenses should now be properly selected in the lens profile window in the Lens correction folder.
For more info on the above see the thread: Canon R7 Metadata for lens type is incorrect in Affinity photo 2 in the section Report a bug in Affinity photo V2.
CanonR7-280-286-288.xml