Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Genmoji support #89

Open
dcalhoun opened this issue Feb 10, 2025 · 0 comments
Open

Add Genmoji support #89

dcalhoun opened this issue Feb 10, 2025 · 0 comments
Labels
[Type] Enhancement A suggestion for improvement.

Comments

@dcalhoun
Copy link
Member

dcalhoun commented Feb 10, 2025

What problem does this address?

Genmoji are available in every app, but they require a bit of work to render them as emoji. By default, these are inserted as images, which is not what you typically want.

Screenshots

Generation Current Result

References:

What is your proposed solution?

We should implement logic to render Genmoji as emoji characters.

// Converting NSAttributedString to HTML
let htmlData = try textContent.data(from: NSRange(location: 0, length: textContent.length),
documentAttributes: [.documentType: NSAttributedString.DocumentType.html])
<!-- Resulting HTML-->
<picture>
  <source srcset="genmoji.heic" type="image/x-apple-adaptive-glyph">
  <img src="genmoji.png" alt="dog in a spacesuit">
</picture>
@dcalhoun dcalhoun added [Type] Enhancement A suggestion for improvement. [Type] Task Issues or PRs that have been broken down into an individual action to take and removed [Type] Task Issues or PRs that have been broken down into an individual action to take labels Feb 10, 2025
@dcalhoun dcalhoun changed the title Add support for Genmoji Add Genmoji support Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

1 participant