I started Paul Hudson's 100 Days of Swift on January 25, 2019 and posted day 100 on November 6, 2019: 100 days of work spread over 285 calendar days, because office work often came first. The course is free, UIKit-based, with 30 projects and two rules: an hour a day, and post your progress. Hacking with Swift now points most learners to 100 Days of SwiftUI instead. My day 100 tweet showed a scroll parallax effect; a tested version of that effect is below.
PERSONAL · 100 DAYS OF SWIFT · UIKIT
First posted on November 7, 2019, as "I Finally completed the 100 Days Of swift challenge". Rewritten on November 20, 2026. The course details come from the Hacking with Swift pages, checked on November 20, 2026. The parallax code is a new version I wrote for this rewrite, not my 2019 code, which wasn't in the post. It was run as a Mac Catalyst program with Xcode 26.2 on macOS 26.0.1 and type-checked for iOS 15 and iOS 26.2 targets. Nothing was run on an iPhone or a simulator.
I wanted to become a better developer, so in January 2019 I took the challenge at Hacking with Swift, to learn more than I already knew. I also hoped it would make coding a daily habit. It didn't quite: I didn't code every day, because there was so much work at the office that the challenge often had to wait.
Still, I finished. My first tweet for day 1 was on January 25, 2019, and my day 100 tweet was on November 6, 2019. That's 285 calendar days for 100 days of the challenge. This post keeps both tweets, explains what the challenge is for anyone thinking of starting it in 2026, and rebuilds the effect from my last day.
What 100 Days of Swift is
100 Days of Swift is a free course by Paul Hudson on Hacking with Swift: videos, tutorials and tests that take a beginner to building real iOS apps. It teaches UIKit, Apple's older interface framework, through 30 projects spread across the 100 days. Some days are consolidation days, where you stop adding new material and review what you've learned so far.
There are only two rules. Spend one hour a day reading or watching Swift tutorials, or writing Swift code. And post about your progress on social media every day. The second rule is what made it fun for me: sharing progress on Twitter made it easy for a community to grow around the challenge, and for people to find and support each other, and that made me even more excited to keep going.
Day 1 and day 100
My day 1 tweet, in Indonesian, roughly "I'm joining in":
— ジェリ (@luffyselah) January 25, 2019
And day 100, a scroll parallax effect:
Complete 😬— ジェリ (@luffyselah) November 6, 2019
Scroll Parallax effect #day100#100DaysOfSwift #100DaysOfCode #100DayChallenge#codeInComment
👇👇👇👇👇👇 pic.twitter.com/B6aqA8Kays
If the embeds don't load, the text of each tweet and its date are still shown above.
What my project folder looked like
The GIF at the end of this post scrolls through the Xcode project I used for the challenge, called 100DayOfCode. Each day has its own folder, from Day_1 to Day_100, and the folder names are my own topics, not the course's project titles. A few of them: Day_1 is a collection view like the App Store's, Day_3 generates a QR code, Day_4 is ARKit, Day_30 is AdMob, Day_54 is Word Scramble, Day_73 and Day_74 read and create barcodes, Day_93 is Parallax, Day_96 is Animation-Scanning, and Day_100 is Detect_ScreenShoot.
For the record, two dates: my day 100 tweet was on November 6, 2019, and my QR code and barcode app template post on this blog is from November 20, 2019.
If you start in 2026
The 100 Days of Swift page is still online, but Hacking with Swift now marks it as the older course. It says to follow 100 Days of SwiftUI instead, unless you specifically want to learn UIKit. That's a reasonable split. New apps mostly start in SwiftUI, while many existing apps, including the ones you might be hired to work on, are still largely UIKit, so UIKit is worth knowing if your job involves an older codebase.
One practical point from my run: the rule says an hour a day, and I didn't manage that. My 100 days took 285 calendar days, and I still finished. The course pages are free and stay online, so missed days don't lock you out of anything.
Day 100: a scroll parallax header
A parallax header is an image at the top of a scrolling screen that moves slower than the content beneath it, so it seems further away. Pull down past the top, and the image grows instead of leaving a gap. This version does both from scrollViewDidScroll(_:):
import UIKit
final class ParallaxViewController: UIViewController, UIScrollViewDelegate {
let scrollView = UIScrollView()
let header = UIImageView()
let headerHeight: CGFloat = 240
override func viewDidLoad() {
super.viewDidLoad()
scrollView.frame = view.bounds
scrollView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
scrollView.contentInsetAdjustmentBehavior = .never
scrollView.delegate = self
view.addSubview(scrollView)
header.contentMode = .scaleAspectFill
header.clipsToBounds = true
header.frame = CGRect(x: 0, y: 0, width: view.bounds.width, height: headerHeight)
scrollView.addSubview(header)
// The rest of the content starts at y = headerHeight.
}
func scrollViewDidScroll(_ scrollView: UIScrollView) {
let y = scrollView.contentOffset.y
if y < 0 {
// Pulled down: keep the header pinned to the top and make it taller.
header.frame = CGRect(x: 0, y: y, width: scrollView.bounds.width, height: headerHeight - y)
} else {
// Scrolled up: move the header at half speed, so it lags behind the content.
header.frame = CGRect(x: 0, y: y * 0.5, width: scrollView.bounds.width, height: headerHeight)
}
}
}
To check the numbers, I ran it as a Mac Catalyst program with a 375 by 667 point view, set the scroll offset to several values, and printed the header's frame. Setting contentOffset calls the delegate, just as a finger would:
offset -100: header y -100, height 340, top edge on screen 0
offset -40: header y -40, height 280, top edge on screen 0
offset 0: header y 0, height 240, top edge on screen 0
offset 100: header y 50, height 240, top edge on screen -50
offset 240: header y 120, height 240, top edge on screen -120
offset 400: header y 200, height 240, top edge on screen -200
When the scroll view is pulled down (negative offsets), the header's top edge stays at the top of the screen and it grows taller: 340 points at -100. When the content scrolls up, the header moves at half the speed: at offset 400 it has moved 200 points off screen instead of 400.
The output also shows the one thing to get right in your layout. At offset 240, the header's bottom edge is still 120 points down the screen, but the content that starts at y = 240 is already at the top. The header is behind the content there, so add the content views after the header, give them a background color, and they'll slide over the image. A transparent content view would show the header through it.
Two other details. contentInsetAdjustmentBehavior = .never stops the scroll view from adding the safe area inset, which would otherwise shift the offsets the math depends on. And clipsToBounds on the image view keeps an aspect-fill image from spilling outside the header as it grows.
The quote
When I finished, I shared my favorite quote: "One becomes a beginner after 1,000 days of training. One becomes a master after 10,000 days of practice." It's often attributed to Mas Oyama, the founder of Kyokushin karate. I've only found it on quote collections, not in a book or interview of his, so treat the attribution with care. The point still holds for programming: 100 days makes you a beginner who can build things, and that's a good place to be.
What came next
In 2019 I wrote that I might continue with the next challenge, 100 Days of SwiftUI. In 2026 this blog has a roadmap for that course, linked below. If you have questions about the challenge, you can reach me through the contact page.
What the 2019 version said
The post was a short note, the two tweets above, and this GIF of the challenge project:

Keep reading on JR Devhub
Comments