element-hq / element-hq/element-ios

Labs: Rich-text editor: Use `UITextInputAssistantItem` on iPad

Open
#6,984 0 comments 0 reactions 0 assignees View on GitHub
A-Rich-Text-Editor T-Enhancement X-Needs-Design X-Needs-Product
Dominant language
Swift
Stars
1.8k
Forks
544
PR merge metrics
PR metrics pending

Description

### Your use case

#### What would you like to do?

On iPad, `UITextInputAssistantItem` ([documentation](https://developer.apple.com/documentation/uikit/uitextinputassistantitem)) allows you to add extra buttons to the on-screen keyboard suggestion bar, so that they are only visible when the on-screen keyboard is.

Might look tidier and use less screen space than having formatting buttons on-screen all of the time as they are in Labs at the moment.

### Have you considered any alternatives?

_No response_

### Additional context

Unfortunately I don't think this will work for iPhone, as per the docs:

> You can add custom items to the shortcuts bar on iPad only. On iPhone, the text input system ignores the contents of the UITextInputAssistantItem object.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.