Viz iOS Assignment


In this assignment, you will implement a simple CT scan viewer. A CT scan is a series of images resulting from an x-ray scan, in this case, a head. For this purpose, a skeleton project is set up, with one view, the CT scan viewer. Your task is to get the CT scan data from the api, prepare the data, and display it as seen in the below video.


A basic api for fetching the scan data (series) is online at The api description is as follows:


Getting the series data

path: series ( result: a json of the form

  id: String - the series id
  slices: [String] - an array of slice image names, e.g ["0", "1", "2"]

Getting a single slice image

To get a slice image, you should construct a url as follows: path: series/[series id]/slice/[slice image name] for example, if for the series data you got id = 1234, and the slices array had the slice "10", to get the actual image data for that slice, load



To get you up to speed, a basic interface view controller is already set up with a UISlider and a UIImageView. use that view controller for displaying the results. you are free to extend or change it as you wish.


A SwiftUI skeleton project is also available. SeriesView is set up with an image and a slider as well.


• The images must be presented and corrospond (when moving the slider) to the order in which they appear in the series result. • Usage of third party code is allowed (packages, pods etc). • Select Swift + UIKit or SwiftUI for your implementation. • Although this is a “single view” task, you should design the execution properly. Think about architecture, networking, modeling, efficiency, error handling and stability. Feel free to change the project as you will, as long as you display the viewer with the required functionality. • You have an hour and a half to complete the task.

Bonus points

• Setting up a caching mechanism for the photos (you are not required to cache the images by default. They can persist in memory as well). • Show a loading indicator until all images are ready.


When done, compress the xcode project and send it by mail.


View Github