Skip to content

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.

2 participants