I'm trying to create simple application (for testing purpose) with NSScrollView and 2 multi-line labels inside it (title and document). I can't use integrated TextView because I need 1 general scroller to scroll all content, not just for one selected TextView.
So generally I need fixed one-line title and document text with shared scroller.
I have no mind how to make this.
I've attached my sample project (only Storyboards) with scoller, you can take a look here: scroller.zip
I'm not sure if this is possible in the designer, but it is possible to set correct constraints in the runtime. Follow the steps:
@IBOutlet weak var labelHeightConstraint: NSLayoutConstraint!
)viewDidLoad
method set constraints height to expected height (for examplelabelHeightConstraint.constant = 1000
)Hope it helps!