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+

Internationalization and localization

53:54

ULTIMATE PORTFOLIO APP

Internationalization and localization

Our app was designed to work in English, and although you might not want to change that your should at least be able to change. Let’s start with that…  Continue Reading >

Now for the real work…

04:26

ULTIMATE PORTFOLIO APP

Now for the real work…

Everything we’ve done so far has produced a serviceable app, although it does have a few bugs that we’ll address later. But before we address those, I want to change gear and focus on making our existing code better. This is where the real work begins!  Continue Reading >

Creating the Home view

35:49

ULTIMATE PORTFOLIO APP

Creating the Home view

So far our home view has simply been a host for adding test data, but that changes now: we’re going to make the home view a summary of all their project progress, plus the most important items coming up next.  Continue Reading >

Counting Core Data results

20:34

ULTIMATE PORTFOLIO APP

Counting Core Data results

Now that we’ve designed a basic awards UI, we can bring it to life with some Core Data queries to determine which awards have actually been earned.  Continue Reading >

Reading awards JSON

34:37

ULTIMATE PORTFOLIO APP

Reading awards JSON

Parsing data into your app is the single most common task any iOS developer needs to do, so in this article we’ll start to build out an Awards tab using JSON.  Continue Reading >

Finishing ProjectsView

22:32

ULTIMATE PORTFOLIO APP

Finishing ProjectsView

At this point our main list view is almost done, but before we’re finished we’re going to add some icons, make landscape mode work better, and even fix a rather nasty deletion bug.  Continue Reading >

Custom sorting for items

56:13

ULTIMATE PORTFOLIO APP

Custom sorting for items

Our default sort for project items works well enough, but with a little extra work we can let users choose how to sort them. In this article I’m going to walk you through several different ways of approaching this problem, some that I think work well, and others not so much…  Continue Reading >

Adding and deleting

18:42

ULTIMATE PORTFOLIO APP

Adding and deleting

At this point you can get a basic idea for the UI of our app, but it has a fatal flaw: although we can add test data, we can’t do the same for user data. Let’s fix that now – there’s more to it than you might think!  Continue Reading >

Questions and answers, part 1

24:31

ULTIMATE PORTFOLIO APP

Questions and answers, part 1

As folks have worked their way through the series so far, they’ve sent in various questions about implementation choices and more. In this article I want to address the eight most common questions asked so far, so that everyone can benefit.  Continue Reading >

Editing projects

19:02

ULTIMATE PORTFOLIO APP

Editing projects

Editing projects is much like editing items, but because a good portfolio project should show off a range of skills we’re going to bring in grids, alerts, tap gestures, and more.  Continue Reading >

Adding a section header

14:02

ULTIMATE PORTFOLIO APP

Adding a section header

Now that item editing works well, we can add a screen to edit projects. But before we can even think about that we need to add a custom section header to let users select a project to edit.  Continue Reading >

Instant sync and save

16:31

ULTIMATE PORTFOLIO APP

Instant sync and save

Rather than calling update() when our view disappears, what we really want to do is update the object before the disappear happens. In this article I’ll show you the SwiftUI native way of doing this, then walk you through an alternative that I prefer.  Continue Reading >

Editing items

17:24

ULTIMATE PORTFOLIO APP

Editing items

Our next step is to build a simple form so the user can edit items, which in itself isn’t too hard. However, along the way I want to show you some useful tips for tracking changes and updating the UI – it’s not quite as straightforward as you might expect.  Continue Reading >

Storing tab selection

12:41

ULTIMATE PORTFOLIO APP

Storing tab selection

Although apps can live in the background for quite a while, eventually they will be terminated. But when a user relaunches them, it’s a good idea to bring them roughly back to where they were, and with state restoration we can do just that.  Continue Reading >

Cleaning up Core Data

23:38

ULTIMATE PORTFOLIO APP

Cleaning up Core Data

Core Data’s optionals are quite different from Swift’s optionals, which makes them a little uncomfortable to work with. In this article I’m going to show you two ways of fixing this, which will help clear up our code nicely.  Continue Reading >

Storing your code somewhere safe

21:32

ULTIMATE PORTFOLIO APP

Storing your code somewhere safe

At this point we have something very simple working, so now is a great time to stash your code away somewhere safe using source control. If you already know how to use Git then you’re welcome to skip this part.  Continue Reading >

First steps in UI

18:01

ULTIMATE PORTFOLIO APP

First steps in UI

Now that we have our basic data model configured and coded, we can put it to use by building a simple user interface to help make sure our data is in place and working correctly.  Continue Reading >

Designing a great model

40:24

ULTIMATE PORTFOLIO APP

Designing a great model

Almost always, the key to getting a great app is getting a great data model – deciding as early as you can what data you want to store, and how each piece relates to other pieces. So, we’re going to dive straight into Core Data!  Continue Reading >

Ultimate Portfolio App: Introduction

14:17

ULTIMATE PORTFOLIO APP

Ultimate Portfolio App: Introduction

While I’m sure you’re keen to get started programming immediately, please give me a few minutes to outline the goals of this course and explain why it’s different from other courses I’ve written.  Continue Reading >

Flocking with boids

1:01:16

ALGORITHMS

Flocking with boids

If you watch a flock of birds you’ll see it exhibits all sorts of complex behaviors as they swarm around in the air – they often stay together but not too close, they move in the same direction but also seem to change direction at the same time. In this article we will create flocking behavior in SwiftUI, using Craig Reynolds’ classic boids algorithm.  Continue Reading >