You can use the Ready Player Me web platform to add avatars to your native iOS application. This general integration guide gives an overview of the main methods of adding avatars to your app.
For integrating the Ready Player Me web platform directly into your native application and retrieving the avatar models URL the general process is as follows:
Spawn a web browser or switch to a view with an embedded web browser (for example, using WKWebView as in the Swift Example Project)
Navigate to the desired Ready Player Me URL, e.g https://readyplayer.me/avatar
Retrieve the event data (a URL as a string)
Once you have retrieved the generated avatars URL, you can make a web request to download the avatar
.glb file. To load this into a 3D scene, you will need to use a third-party framework to supports the loading of
.glb files as Xcode does not natively support
.glb as a 3D file format.