Mobile applications can interact with data that is stored as objects in the cloud, not only for archiving, storage, and back-up tasks, but also for scalable, persistent storage for analytics. This code pattern shows an example Swift app for comparing images that are downloaded from a traditional server and images that are stored as objects on the cloud.
This code pattern is an example “Image Downloader” app that compares downloaded Atlantic Hurricane Season images from a traditional server (Wikipedia in this example) and IBM Cloud Object Storage on an iPhone. The images are stored in Cloud Object Storage as objects in one bucket and a compressed file archive in another bucket.
This code pattern shows you how to complete the following tasks:
- Create an iOS Swift application.
- Incorporate Cloud Object Storage in a Swift application.
- The user interacts with the app to start a download of objects (images) from Cloud Object Storage.
- The app makes the necessary calls to Cloud Object Storage to get the access token and the list of bucket objects, and to download the objects (images).
- The images are downloaded and displayed on the app to the user.
Find detailed technical steps for this code pattern in the README.md file in the GitHub repository.
- Clone the repo.
- Install developer tools.
- Install dependencies.
- Create Cloud Object Storage buckets.
- Run the app in Xcode.