Skip to content

Provides an example of integrating UITextView into SwiftUI to enable advanced rich text editing capabilities. It demonstrates support for Adaptive Image Glyphs, including the use of Apple’s Genmojis introduced in iOS 18, within a SwiftUI context.

License

Notifications You must be signed in to change notification settings

Aeastr/SwiftUI-AdaptiveImageGlyph

Repository files navigation

SwiftUI AdaptiveImageGlyph

Two iPhones displaying a SwiftUI application titled “SwiftUI AdaptiveImageGlyph.” On the left device, a modal or sheet with a “Cancel” button and an area featuring two emoji icons is visible. The right device shows a grid layout containing repeating emoji combinations of an angry face and a desktop computer

SwiftUI AdaptiveImageGlyph is a sample project that demonstrates how to integrate UITextView into a SwiftUI app to enable rich text editing with support for Adaptive Image Glyphs, including Genmojis introduced in iOS 18.

Features

  • Adaptive Image Glyph Support: Display and interact with Apple’s Genmojis in a SwiftUI environment.
  • SwiftUI Integration: Example code for embedding using the component in SwiftUI.
  • Saving to Core Data: Includes a Core Data implementation for persistent storage.

Origin

This project is largely based on the implementation from my app Kyo 2.0. It demonstrates the same techniques and functionality used in the app for rich text editing and Adaptive Image Glyphs integration. Essentially, it’s a stripped-down version of Kyo 2.0's rich text editing features, made into a quick example.

Check out Kyo 2.0. Check out Kyo Discord.

Requirements

  • iOS 18+
  • Xcode 15+
  • SwiftUI

Usage

  • The examples show how to use UITextView for handling rich text in SwiftUI.
  • Adaptive Image Glyphs (Genmoji) are automatically supported through the supportsAdaptiveImageGlyph flag.

License

This project is open-source and available under the MIT License.

About

Provides an example of integrating UITextView into SwiftUI to enable advanced rich text editing capabilities. It demonstrates support for Adaptive Image Glyphs, including the use of Apple’s Genmojis introduced in iOS 18, within a SwiftUI context.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages