Wondering what the correct way is to add non-editable text to an NSView for MacOS using Swift. I am not sure if I am supposed to draw it like this, or if there is another way. I am used to HTML where you just set the textContent property on an element/view and that's it. Not sure if it should be at the level of the canvas/cgrect or UITextView or what.
Basically I would like to add both button labels (small amounts of text) and paragraphs of text (large amounts) using the same approach if possible, using something that has good performance.