When the window is resized, relayoutTypewriterMode(scrollView:) is called to make the active typewriter mode object recalculate the necessary textContainerInsets. By increasing the top inset to always equal 100% of the container view - lineHeight, this mode effectively pushes the insertion point out at the bottom.
When the window is resized,
relayoutTypewriterMode(scrollView:)is called to make the active typewriter mode object recalculate the necessarytextContainerInsets. By increasing the top inset to always equal100% of the container view - lineHeight, this mode effectively pushes the insertion point out at the bottom.