PDFThumbnailView overlaps the PDFView
I want to create a PDFView with embedded PDFThumbnailView for macOS. The PDFThumbnailView should be vertical, on the right side of the PDFView. I wish both views to be inside one NSViewRepresentable. However, I’m not very familiar with UIKit and its constraints and the best I could possibly do is to make the PDFThumbnailView overlap the PDFView. How to make the PDFView and the PDFThumbnailView separate, so they don’t overlap? Here’s the code: