title: SwiftUI NSPathControl open finder location when clicking icons
body: <p>I've wrapped NSPathControl for use in my Mac OS SwiftUI app but I can't work out how to make the sizes of the path smaller or how to get the individual paths to open the location in Finder when clicked.</p>
  <p>Here is the wrapper:</p>
  <pre class="lang-swift prettyprint-override"><code>struct PathView: NSViewRepresentable {
      typealias pathViewNSView = NSPathControl
      var configuration = { (view: pathViewNSView) in }
      
      func makeNSView(context: NSViewRepresentableContext&lt;PathView&gt;) -&gt; NSPathControl {
          pathViewNSView()
      }
      func updateNSView(_ nsView: NSPathControl, context: NSViewRepresentableContext&lt;PathView&gt;) {
          configuration(nsView)
      }
  }
  </code></pre>
  <p>I use the view like this:</p>
  <pre class="lang-swift prettyprint-override"><code>PathView { view in
      view.url = URL(fileURLWithPath: &quot;/Volumes/Users/myfolder&quot;, isDirectory: true)
  }
  </code></pre>
  <p>I know to use NSWorkspace.shared.selectFile to open the path in Finder but not sure how to do this with the wrapped NSPathControl.</p>