https://github.com/noppefoxwolf/zenmoji
https://github.com/noppefoxwolf/zenmoji
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/noppefoxwolf/zenmoji
- Owner: noppefoxwolf
- License: mit
- Created: 2024-11-07T12:29:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-08T12:05:30.000Z (over 1 year ago)
- Last Synced: 2025-04-14T05:53:23.100Z (about 1 year ago)
- Language: Swift
- Size: 70.3 KB
- Stars: 67
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zenmoji
Zenmoji is a NSAdaptiveImageGlyph based custom emoji rendering.

# Usage
```swift
import Zenmoji
let image = UIImage(resource: .blobcat)
let adaptiveImageContent = AdaptiveImageContent(image: image)
let adaptiveImageGlyph = NSAdaptiveImageGlyph(imageContent: adaptiveImageContent)
let attributedText = NSAttributedString(adaptiveImageGlyph: adaptiveImageGlyph)
textView.insertAttributedText(attributedText)
```
# License
Zenmoji is available under the MIT license. See the LICENSE file for more info.