iOS Keyboard Extension Memoji like paste

0 votes

Apples build in Emoji Keyboard has a section with "Memoji" stickers. If you tap on any of these stickers (it seems to be a PNG image), then it's automatically inserted into the textfield or into the chat of the current App, for example WhatsApp, Facebook Messenger or iMessage.

WhatsApp with Memoji

Is it possible to get the same functionality with a custom keyboard? Or is Apple using some private API for the Memoji stickers?

I know how to add an image or image data to the pasteboard like UIPasteboard.general.image or UIPasteboard.general.setData(...). But if I do so, the png image isn't pasted automatically into the textfield. The user has to do additional steps and tap with the finger into the textfield and select "paste".

Sep 21, 2022 in Others by gaurav
• 23,260 points
725 views

1 answer to this question.

0 votes
All the mentioned apps use UITextView, upon selection of any sticker the OS adds this image as an NSTextAttachment to the attributedString of the text view
answered Sep 21, 2022 by rajatha
• 7,680 points

Related Questions In Others

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

I would like to know the Steps involved to remove an Apache Solr from Windows 10 Computer

Hi@Ganapathy, There are several different possibilities for why ...READ MORE

answered Aug 18, 2020 in Others by MD
• 95,460 points
2,997 views
0 votes
0 answers
0 votes
1 answer

Get User Group in Swift using AWS Cognito

The groups are exposed in the ID ...READ MORE

answered Nov 12, 2018 in AWS by Priyaj
• 58,020 points
1,548 views
0 votes
1 answer

URL Scheme for iOS Home App

I think you could try doing it ...READ MORE

answered Nov 16, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,154 views
0 votes
1 answer

iOS App : Porting Code to App

If you make a post, missing parameters ...READ MORE

answered Jan 18, 2019 in IoT (Internet of Things) by Shubham
• 13,490 points
645 views
0 votes
1 answer

swift for windows? xcode on windows? ?

Hi, @Aminegac, If you’re a little more technically ...READ MORE

answered Dec 4, 2020 in Others by Nikita
1,774 views
0 votes
1 answer

ios: localize emoji name (kCFStringTransformToUnicodeName)

There is no api for this job. Unicode ...READ MORE

answered Sep 21, 2022 in Others by rajatha
• 7,680 points
1,076 views
0 votes
1 answer

Load Animated gif in UIImageView IOS

Load GIF image Swift : ## Reference. #1 : ...READ MORE

answered Sep 21, 2022 in Others by rajatha
• 7,680 points
9,478 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP