I'm trying to implement a multi column layout for a hex editor using TextKit2. I'm using the sample App named "LayoutTextWithTextKit2" as my starting point, but I'm struggling to understand what the best approach could be to implement it.
This is how my view currently looks, with the NSTextParagraph text elements laid out one after the other in a vertical stack (which is the default behavior in NSTextLayoutManager).
I'm basing my text element on NSTextParagraph and it's rendering as shown above.
I've looked at Apple's videos explaining how to work with TextKit2, but found that they don't really explain how to modify a layout to support multiple columns.
I'm attaching an image showing two fragments that I'd like to be laid out horizontally in the same line, for reference. Any guidance towards that goal, even beyond my question and my observations, will be appreciated.
To sum it up: is it possible to achieve multi-column layouts using TextKit2? If so: how? Should I instead use CoreText directly?
