SCLAlertView-Swift icon indicating copy to clipboard operation
SCLAlertView-Swift copied to clipboard

Add textViewContainerInset as new parameter

Open ngunngun opened this issue 3 years ago • 1 comments

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

ngunngun avatar Oct 29 '22 02:10 ngunngun

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?

algrid avatar Oct 19 '23 22:10 algrid