Create an Image Carousel Using Swift
Place Images Nicely
3 min readMay 14, 2021
Difficulty: Beginner | Easy | Normal | Challenging
This article has been developed using Xcode 12.4, and Swift 5.3.2
This is supported by the YouTube video https://youtu.be/tMNyU3y4U-Y
Prerequisites:
- You will be expected to be aware how to make a Single View Application
- You will need to use Swift Package Manager to add dependencies
- Some knowledge of AutoLayout would be useful
Terminology
Carousel: A set of rotating images
SDWebImage: A framework to help download and display images
UIView: An object that manages the content for a rectangular area on the screen
UIViewController: A view controller is an intermediary between the views it manages and the data of your app
A What With The What Now?
You might want to display a selection of images that sleekly scroll by in front of the user’s eyes, without their interaction? Something like: