Swift: Write Files to the Documents and Library Directories

Simple class for iOS (Swift and Objective-C code) to save files to the Library and Documents Directories with optional subdirectories – @sketchyTech