Mac command line utility chflags can be used t unhide or hide a hidden folder or file on Mac. A hidden folder will start appearing in Finder window as shown below
Unhide directory ~/Library
$ chflags nohidden ~/Library/
Hide directory ~/Library
$ chflags hidden ~/Library/