Skip to content

Instantly share code, notes, and snippets.

@m4p
Created June 14, 2018 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m4p/fb5301d77e049a3eea6bc6d2816f0217 to your computer and use it in GitHub Desktop.
Save m4p/fb5301d77e049a3eea6bc6d2816f0217 to your computer and use it in GitHub Desktop.
AVTPersonalAnimoji *memoji =[ASPersonalAnimoji personalAnimoji];
[memoji setPreset:[AVTPreset presetWithCategory:5 identifier:@"rectangle"] forCategory:2];
[memoji setPreset:[AVTPreset presetWithCategory:2 identifier:@"horseshoe_ducktail"] forCategory:2];
[memoji setPreset:[AVTPreset presetWithCategory:1 identifier:@"straight_short_back"] forCategory:1];
self.avatarInstance = (AVTAvatarInstance *)memoji;
/*
Categories:
1: Hair
2: Beards
4: Hats
5: Glasses
6: Eyelashes
9: Nose
10: Lips
11: Ears
12: Age
13: Ear size
14: Earrings
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment