'SwiftUI - How to get user's Memoji?

I was wondering how I can get a user's Memoji with SwiftUI. Unfortunately, Apple's AvatarKit is private and can't be used in production apps.

So is there a way to get a Memoji sticker from the keyboard? I've tried looking at .keyboardType but it doesn't have any options for stickers/memoji.

I am basically wondering how I can get the Memoji to show up in the keyboard for a TextField in SwiftUI. I know you can do it outside of SwiftUI (by setting allowsEditingTextAttributes to yes).



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source