7 iOS Projects to Hack on This Weekend

SwiftUI, DocC, UIKit — we’ve got it all covered.

Coffee Bytes
3 min readNov 4, 2022
Photo by Arthur Franklin on Unsplash

From an iOS 16 lock screen-inspired RealityKit project to an intro to Layout protocol to using View Modifiers to style your UIView and NSView (without SwiftUI!) to creating a Swifty Command-Line Tool, to building rich SwiftUI experiences, we’ve got seven projects for iOS developers to doodle on this weekend.

An iOS 16 Lock Screen Inspired AR Experience Built Using RealityKit

iOS 16 introduced a way to show the depth effect of the subject in your lock screen wallpapers. How about recreating that using RealityKit and SwiftUI?

Cole Dennis shows how to do that by breaking down the process into four steps:

  • Adding Person Segmentation to our ARView Session
  • Accessing the Current Time
  • Generating the 3D Text Mesh and customizing it using RealityKit materials.
  • Anchor the 3D text to our camera

Here’s the final result:

Source

Check out the complete tutorial here.

Create a Swifty Command-Line Tool With ArgumentParser

A handy tool to save your CLI notes as files. Here’s David Piper to walk us through a hands-on implementation using Apple’s ArgumentParser framework to build a simple command-line tool. But you can extend it to automate so many repetitive tasks.

Here’s the complete tutorial with source code available on GitHub.

Source

Deploying DocC with GitHub Actions

We’ve briefly covered DocC, Apple’s markdown-based documentation tool and seen how to host and share your package docs on websites. On top of it, the Swift package manager team can automagically generate and host your docs when you add a short .spi.yml file to your project root.

In this tutorial, Max shows us the way to deploy documentation in Apple’s DocC format onto GitHub pages and also streamline the process by using Github Actions.

Create a Transition That Fades Between Colors in SwiftUI

Scott Andrew shows a great technique to create beautiful background color transition effects between images (by determining the average color of an image) and tracking the ScrollView’s offset. A great read, especially if you haven’t used the SwiftUI Introspect library just yet!

Here’s the complete tutorial with source code on GitHub.

Create Multi-Steps View in SwiftUI

Sarah is back to teach us how to create a multi-step customizable SwiftUI view for navigation.

If you’re learning how to add an onboarding form or build a UI for your food-ordering app, check out her guide. The tutorial is useful if you’re just getting started with SwiftUI as well.

The Layout Protocol

To finish off today’s list, Mark Lucking is here to walk us through the layout protocol in iOS 16 — with hands-on examples such as CornerLayout and CircleLayout.

UIView/NSView Styling With @propertyWrapper

Not everyone has the luxury to ditch UIKit right now. If you’re working on one of those codebases and want to introduce the style of SwiftUI-like view modifiers in order to write custom UIView/NSViews while also avoiding boilerplate code and making views reusable, worry not! Chris Nevin offers a quick guide to do all of that.

That’s all. Thanks for reading.

--

--

Coffee Bytes

Caffeinating your stories, one cup at a time. Curated by @anupamchugh