This is the accompanying code sample to my step-by-step article on how to use the Office 365 SDK in iOS to create, read, update and delete files. It's very basic code that I slapped together in a very short amount of time to show you how easy it is to use the Office 365 iOS SDK in Swift.
Use however you wish. No attribution necessary.
Article: http://www.kloh.me/programming/get-files-from-office-365-in-swift
Here are some images showing the sample app:
Login with your work or school account:
See all your files in your OneDrive for Business/SharePoint account:
Create and upload a new file to your OneDrive for Business:
Get the file contents, see its properties, and also make changes to the file contents and save it to the user's OneDrive for Business account:
Delete a file from OneDrive for Business with the sample app: