Should you write your app in SwiftUI?
Aug 24, 2019, 1:02 PM
I’ve hit a few roadblocks when working on Read & Share and I’m working on building separate screens in isolation while I wait for improvements from the next Xcode and SwiftUI beta (maybe next week?) to really tie things together.
Read & Share Build Log #1
Jul 25, 2019, 11:18 AM
I’ve been working on a project that I’m aiming to release with iOS 13 later this year, and I’ve decided to do some build logs with interesting features or new things I’m learning here. I talked a bit about it on...
Migrating from Swift 2 to Swift 3, Part 1
Sep 5, 2016, 8:00 PM
As we approach the release of Xcode 8 and Swift 3, we face the inevitable task of upgrading our old Swift 2.x code to the new syntax in Swift 3, including the major reworking of Foundation and UIKit names that has become known as the Grand...
Using Swift 2.3 in Xcode 8
Aug 22, 2016, 8:00 PM
We’re well into the betas of Xcode 8 which will contain the final release of Swift 3, hopefully set for release around the first couple weeks of September. With this next release of Xcode, we’re encouraged to update our Swift...
Speeding Up Slow Swift Build Times
Apr 25, 2016, 8:00 PM
A quick note today: People seemed interested at the ease in which we can currently make the Swift 2.2 compiler take 12+ hours to compile some basic code because of type inference. From this post by Matt Nedrich, we can see a simple example...
Upgrade your TableViews with Loading State
Apr 17, 2016, 8:00 PM
@Javi briefly mentioned the Fabric approach to dealing with table views at the Swift user group meetup the other night, opting for an enum that represented the state of the table as loading, failed or loaded with an associated type (the...
Widgets get an upgrade with the new macOS
Apr 11, 2016, 8:00 PM
This is a little different than the creative code exercises we usually do here at That Thing in Swift, but here goes:
All this talk about macOS had me thinking about what we’ll see at WWDC this year and when I read Brent’s...
Faux Dependency Injection for Storyboards
Apr 6, 2016, 8:00 PM
I do a lot of work where I have to set up views and view controllers for a large number of screens and I have to admit that I enjoy using Storyboards for most of it. I know it’s a polarizing subject with iOS developers and there are...
Kill Your Giant viewDidLoad
Mar 15, 2016, 8:00 PM
Back in Objective-C, we prepared all of our view controller properties in viewDidLoad because that was our only option unless we wanted to subclass every element to provide custom initializers. Using some tricks in Swift, we can provide...
Basic Table View app with JSON Client
Mar 7, 2016, 7:00 PM
Here’s an hour-long livecoding video we did last week to make a basic table view app that downloads and parses JSON and builds a set of dynamic, expanding table view cells. Lots of helfup tips and tricks for working with Xcode and...
Write Your Own API Clients
Jan 22, 2016, 7:00 PM
Download this playground file to play along:Use this as a base for your favorite API
Like many iOS developers, I used to use AFNetworking (along the same lines as the Swift counterpart, Alamofire) for all my networking needs. And...
Jan 3, 2016, 7:00 PM
guard and defer joined us in Swift 2.0 to little fanfare. Both use cases were somewhat obvious initially and plenty of articles were written about how to use these features. guard in particular seemed to solve a few sticky problems that...
Pantry, a light struct caching library
Nov 29, 2015, 7:00 PM
Looking through one of my recent Swift apps, I realized how frequently I persist (or want to persist) little pieces of data.
Feature flags (does the user have access to x?)
User preferences (turn on/off reminder notifications)
New in Swift, November 2015
Nov 6, 2015, 7:00 PM
November’s top picks for new Swift libraries or tools! Plus a special rundown from Swift Summit in San Francisco.
The new Apple TV
The new Apple TV release means we have a plethora of new example code that runs on the device. Two...
New in Swift, October 2015
Oct 4, 2015, 8:00 PM
Something new! I’m going to try branching out from our traditional Objective-C -> Swift format. To start, there are a lot of interesting Swift libraries popping up which I try to feature periodically on Twitter but you might miss...