The Applitools Eyes XCUI SDK allows you to easily add visual checkpoints to your XCUI tests. It takes care of getting screenshots of your application via XCUI, sending them to the Eyes server for validation and failing the test in case differences are found.
Further information is available at: https://applitools.com/tutorials/sdks/xcui/