I am preparing a custom view which looks similar to the example shown in the screenshot. I add all user interface components (labels, text fields, radio buttons, ..) at runt
If you are use NSStackView then make sure you don't set a constraint for it's height and width and make sure all sides are anchored.
Also make sure that you set the content Hugging property to 1000.