Specifying documents directory as file output URL while working with Glimpse in Swift
问题 I'm using Glimpse to record the contents of a UIView so it can save it to a file in the documents directory. I'm having trouble specifying a URL for the file output in the g.startRecording line in viewDidLoad. I'd like to have the return value from getDocumentsDirectory() set as the URL but placing the method name as the parameter does not work. I have also tried to use documentsDirectory and this does not work either and results in "Ambiguous use of 'startRecording" I am using Swift here is