Advent of Code 2025

Hi Swift Community!

It's the most Wonderful Time Of The Year. Time to spend with Family and Friends spend on Swift coding challenge fun!

Every December, Eric Wastl publishes Advent of Code, a fun set of coding exercises. One challenge is posted each day from December 1st to December 2512th [1]. The challenges start out easy and increase in difficulty. Here’s the first exercise from last year for example.

You can use whatever programming language and techniques you like to complete the exercises, but of course, we use Swift! Participating is a great way to sharpen your Swift skills and have a little fun with the community.

For those interested, we have a starter template to help you get going, though its not needed per se.

To participate with Swift:

  1. Create an Xcode project (Command Line Tool is fine), Swift Package or clone the starter project
    a. if your repo is public, make sure to exclude the input data from version control
  2. Create an account at Advent of Code (required to use the leaderboard)
  3. Join the Swift community leaderboard to participate with others. Use ID 3315857-05237f97. Up to 200 players can join the leaderboard.
  4. Every day (or as often as you prefer), attempt the challenge using Swift!

The leaderboard will automatically update to show who has completed the challenge and provide a score based on how long it took you. You can always ignore the score of course - it’s just for fun!

We'd encourage you to include a link to your GitHub account where you can post your solution. It’s really neat to see how everyone attempts each day’s challenge: we learn new things about how others use the Swift language, and you can pick up some great tips and techniques from studying others' work.

Look forward to seeing you online!


  1. This year the number of challenges changed from 25 to 12. Meaning that the event will run until mid-december instead of Christmas Day. ↩︎

12 Likes

Count me in. My solutions will be at gereon/AoC2025: Advent of Code 2025 - Codeberg.org

3 Likes

Genuinely excited for this year's Advent of Code! I had a lot of fun last year :grinning_face_with_smiling_eyes:

May even get the chance to try out shiny new Swift features like InlineArray.

I'll share my results here: GitHub - Androp0v/AdventOfCode2025

3 Likes

Long time reader, first time player.

Looking forward to taking some time out of my day to have a little fun.

3 Likes

Also, my stuff can be found here: GitHub - maartene/AoC2025: AoC2025 using Swift

2 Likes

Thanks for sharing - this looks great and glad you link to VS Code Swift too in the starter project - though looks like it is the deprecated extension, rather than the newer one. Would it be possible to update to https://marketplace.visualstudio.com/items?itemName=swiftlang.swift-vscode

Nice catch! I created a PR for the repo to change the link.

2 Likes