Replies: 1 comment 3 replies
-
|
is it reproducible in non SwiftUI? haven't seen that one |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
SwiftUI wrapper via STTextViewSwiftUI.TextView
Can't get it working, do I understand correctly that this it TextKit 2 / NSTextLayoutManager bug?
what is the workaround?
Like an NSTextLayoutManagerDelegate method, NSTextLayoutFragment override? or other TextKit 2 API to correct typographicBounds for empty paragraph line fragments so they report content height only (not content + lineSpacing)?
with line height and line spacing:

when Enter or \n is entered new line is like double height with no line spacing before it:

as soon as any letter is typed, it's normal as expected:

Beta Was this translation helpful? Give feedback.
All reactions