I hope you're all set for a massive project, because this one is going to cram a lot in. In this project, you're going to make an app for this tutorial series, Hacking with Swift – very meta, I know. The app is going to list all the projects and let users choose which ones they favorite, which by itself sounds like the kind of thing we might have done in project 7 or so.
So how come it's way back here as project 32? Simple: when users favorite a project, we're going to store that in Core Spotlight so they can find it later. And when they view a project, we'll use the SFSafariViewController
class for them to read, which lets you embed Safari right inside your app. If those two new features weren't enough for you, I'm going to throw in a little bit of UITableViewCell
automatic sizing, a little bit of Dynamic Type and even some attributed strings to handle formatted string drawing.
Are you feeling it now? I hope so. Please go ahead and create a new project in Xcode, choosing the Single View App template. Name it Project32, then choose Swift for your language.
TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and free gifts!
Sponsor Hacking with Swift and reach the world's largest Swift community!
Link copied to your pasteboard.