Hacking with Swift+ Preview

You can browse through the latest tutorials below, or select a category from the left. Some videos in the categories are available for free, but most will be locked until you subscribe. When you subscribe, you'll get access to all these tutorials plus all new tutorials that get released.

Subscribe to Hacking with Swift+

Creating a simple widget

41:12

ULTIMATE PORTFOLIO APP

Creating a simple widget

Widgets allow users to place parts of our app right on their Home Screen, which is both deeply powerful and deeply personal. In this article we’re going to start by doing all the app configuration required to make widgets function, then add a simple widget for our app to show that everything works.  Continue Reading >

Functions as first-class types

29:22

FUNCTIONAL PROGRAMMING

Functions as first-class types

If I were to boil functional programming down to just two rules, the second rule would be this: functions are first-class types, and should be passed around like any other kind of data. In this article we’re going to explore what that means, and what power it unleashes…  Continue Reading >

Building with pure functions

24:27

FUNCTIONAL PROGRAMMING

Building with pure functions

If I were to boil functional programming down to just two rules, the first one would be this: prefer to write pure functions as often as you can. What are pure functions, and why would you want them? Let’s start by exploring that in detail…  Continue Reading >

Functional programming in Swift: Introduction

6:52

FUNCTIONAL PROGRAMMING

Functional programming in Swift: Introduction

Before you dive in to the first article in this course, I want to give you a brief overview of our goals, how the content is structured, as well as a rough idea of what you can expect to find.  Continue Reading >

Integrating with Shortcuts

10:40

ULTIMATE PORTFOLIO APP

Integrating with Shortcuts

Shortcuts let users access quick commands from our app elsewhere in the system, as well as chaining them to build complex commands, or even asking Siri to trigger one directly. In this article we’re going to add one to our app, and I think you’ll be amazed how little work it takes!  Continue Reading >

Adding a Quick Action to our icon

33:18

ULTIMATE PORTFOLIO APP

Adding a Quick Action to our icon

Quick Actions let users long-press on our app’s icon on the Home Screen to show a list of actions they can perform immediately. In this article we’re going to add a quick action to create a new project in one step – it’s more work than you might think!  Continue Reading >

Questions and answers, part 3

21:30

ULTIMATE PORTFOLIO APP

Questions and answers, part 3

I’ve had a whole bunch more questions sent in from readers, covering testing, haptics, Spotlight, and more, so let’s dive into them with code examples.  Continue Reading >

A* path finding

31:54

ALGORITHMS

A* path finding

The A* algorithm for path finding is not the perfect way to find an optimal route between two nodes in a graph, but it is either the best or darned close most of the time and that makes it a fantastic one to learn for both games and apps alike.  Continue Reading >

Offering in-app purchases, part 2

38:01

ULTIMATE PORTFOLIO APP

Offering in-app purchases, part 2

Previously we added all the back-end work to make in-app purchases possible in our app. In this article we’re going to continue that work by implementing the user interface for our store, limiting the app itself, and also asking for user reviews.  Continue Reading >

Offering in-app purchases, part 1

51:56

ULTIMATE PORTFOLIO APP

Offering in-app purchases, part 1

Although many apps work great when paid for up front, many more work better when using a freemium model – you get lots of downloads of a free app, then charge for some kind of premium service. In this article we’re going to prepare to limit our app unless the user has paid for an unlock, but we’ll be using a flexible approach you can adapt easily.  Continue Reading >

Adding local notifications

58:54

ULTIMATE PORTFOLIO APP

Adding local notifications

Local notifications allow us to set reminders for the user without ever needing to send data off the device. In this article we’re going to add these notifications to our app, so that users can be reminded to work on specific projects.  Continue Reading >

Integrating with Spotlight

34:58

ULTIMATE PORTFOLIO APP

Integrating with Spotlight

In this article we’re going to make Spotlight store our app’s data, meaning that the user can search for items right from their iOS Home Screen. If you intend to follow the Widget or shortcut sections of this course later on, you should follow this article first.  Continue Reading >

Adding haptics

19:31

ULTIMATE PORTFOLIO APP

Adding haptics

In this article I’m going to walk you through adding haptics to your app, to make it feel a little more alive in the user’s hand.  Continue Reading >

Wrap up, part one

11:48

ULTIMATE PORTFOLIO APP

Wrap up, part one

We’ve just put in place the last major code to complete part one of this app. Let’s clean up just a tiny bit, then look over what we’ve made so far.  Continue Reading >

Just for fun: weather forecasting

1:09:19

HACKING WITH SWIFT LIVE 2020

Just for fun: weather forecasting

Now you understand how widgets work, I want to give you a fun and simple task to experiment with. There’s no example solution here because this is just a sandbox for your ideas, but we’ll end up with a fun quiz to test what you learned.  Continue Reading >

Last but not least: widgets

1:24:55

HACKING WITH SWIFT LIVE 2020

Last but not least: widgets

For our last topic, we’re going to explore widgets. iOS has had widget-like behavior for some time through its Today extensions, but in iOS 14 they gained a lot more functionality.  Continue Reading >

Implementing App Clips in a real app

1:01:00

HACKING WITH SWIFT LIVE 2020

Implementing App Clips in a real app

Now that you understand how App Clips work, in this part we’ll apply them to our Barking Lot app so you can see them in action with real code.  Continue Reading >

Introduction to App Clips

1:20:32

HACKING WITH SWIFT LIVE 2020

Introduction to App Clips

App Clips let us ship tiny slices of our app to do exactly one thing, and in this part we’ll explore how to build them in a test environment.  Continue Reading >

From UICollectionView to UIAction

1:05:06

HACKING WITH SWIFT LIVE 2020

From UICollectionView to UIAction

In this part we’re going to wrap up our look at the new UICollectionView features, then move on to exploring the new UIAction and menu systems for buttons and more.  Continue Reading >

UIKit updates: UICollectionView lists

1:26:39

HACKING WITH SWIFT LIVE 2020

UIKit updates: UICollectionView lists

In this part we’re going to build an app to explore SF Symbols, all built using the massive new updates to UICollectionView that let it act like a table view.  Continue Reading >