In Swift 4 or Swift 5 you can use NSHomeDirectory()
.
The easiest way in Xcode 10 (or Xcode 11) is to pause your app (like when it hits a breakpoint) and run this line in the debugger console:
po NSHomeDirectory()
po
stands for print object and prints most things