How to embed an nsstackview in an nsscrollview

Could somebody give me a tip please.
I know how to do it on iOS, but on macOS it’s not that easy.