Overview: I am developing my first application. It collects user location information for tracking a bicycle ride. I save the contents to a .txt file (coordinate information and attribute information) The user can then export their data out of the iOS application for further analysis. I have successfully added a save text file function to store the information mentioned above along with the ability to export that file outside of the application.
Problem: I have set up a ResearchKit survey to collect additional attribute information that can be tied to a users bike ride. Sample questions include, why a user is riding/trip purpose and what is the weather, etc.). I would like to append the results of the ResearchKit survey to the text file that has the coordinate information, or create a separate text file if necessary. I know I need to somehow access the ORKStepResult task, but I am unfamiliar with the process.
Research: I have searched Github for sample apps using researchKit, but the results are very limited for apps written in Swift. I am not a comfortable enough "developer" to be able to read Objective-C and then translate that into Swift... One day! I have also looked at tutorials from Rey Wenderlich, but they don't mention how to access, save and export your survey results. I have looked at other questions on StackExchange, but most with detailed answers pertain to Objective-C.
Thank you StackExchange your help would be greatly appreciated!