Damus
Frederik Handberg · 3d
Been fighting with #AppKit and #SwiftUI to solve a height calculation problem. Seems like sometimes AppKit does not realize that the height of the SwiftUI code block view has changed. This leads to a ...
Frederik Handberg profile picture
The problem was caused by an `onChange` not always binding to the attachment. Now the markdown editor is updating its height in all my tests.

There still appears to be one more bug where the code block is moving further and further up the more lines it has. It is very minor but I do notice it when there are like 30 lines in the code block.