Can I use the photokit sample on Vision OS?

I am a student developer We are trying to implement an application that allows you to take photos in visionOS mr mode and access the photos you took.

Can the contents of the link below be used on visionOS?

https://developer.apple.com/tutorials/sample-apps/capturingphotos-captureandsave/

I would really appreciate your reply.

For reference, we plan to package the methods in swift and import the framework into Unity to use them.

Can I use the photokit sample on Vision OS?
 
 
Q