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 textViewContainerInset as new parameter #500

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ngunngun
Copy link

In some languages, there are an upper character that was located above the alphabet. If we use textViewContainerInset as zero, the above character would be missing. In some word that the character was missing, the meaning also changed.

Simulator Screen Shot - iPhone 12 - 2022-10-29 at 09 13 51

Simulator Screen Shot - iPhone 12 - 2022-10-29 at 09 14 08

@algrid
Copy link
Collaborator

algrid commented Oct 19, 2023

We probably shouldn't set it to .zero by default. Either don't change it by default, or set it to (8, 0, 8, 0) - the default that Apple uses, see
https://developer.apple.com/documentation/uikit/uitextview/1618619-textcontainerinset

I wonder why the original author set it to zero? To make it more compact?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants