Starting with Xcode 10, developers have been able to run their unit tests in parallel. This can greatly reduce the time it takes to run your tests. But what if your project depends on some shared state? What if you are writing to files? Will your test data clobber each other and lead to flaky tests?| Caesar Wirth
I recently saw a post from someone where they wrote a blog post mentioned how they like to read about home screens and look back at old screenshots of their own. I also enjoy stumbling upon old screenshots of my phone, whether it’s my home screen or apps that I’m working on. I thought intentionally recording it sounded like a good idea.| Caesar Wirth
I was recently working on a project that was divided into modular frameworks by having a framework target for each module in the project. In order to take some of these modules and share it between projects, I thought I would break it out and make a Swift Package out of it. It didn’t go quite as smoothly as I would have hoped. Let’s take a look at some of the hurdles I ran into along the way.| Caesar Wirth
When developing an iOS app, there is a good chance you’ll have to make network requests to communicate with a backend server. A common way to communicate authorization information to the server is by using the Authorization HTTP header. However, you may run into problems if you try using this and other headers directly.| Caesar Wirth
Today I freed up over 200GB of space on my hard drive without losing anything of value. A large chunk of this was files created by and for Xcode. Finding and deleting them was pretty easy to do.| Caesar Wirth
A few days before Christmas I deleted Google Analtyics and Disqus Comments from this website. This choice pretty much affects me alone. I’m the only one looking at the analytics page, and I think I got a total of 10 comments ever. Still, removing them was a personal choice, that I hope has lasting effects.| Caesar Wirth
Apple has put a lot of work into making it possible to use Swift and Objective-C in the Same Project without too much hassle. There are still some challenges that arise when working in a mixed codebase.| Caesar Wirth
It’s probably not too common that a fast food company influences someone’s musical tastes. But that’s just what happened to me. I can trace my current interest in folk music artists such as Pete Seeger, Woodie Guthrie, or The Dubliners, The Clancy Brothers directly to an ad campaign by Burger King.| Caesar Wirth
I am unashamedly a big fan of Heidi, the 1881 book by Swiss author Johanna Spyri. I’ve read the book twice, and seen a number of differentrepresentations.| Caesar Wirth
This year I got to attend WWDC for the second time!| Caesar Wirth
On March 21, 2016, the world celebrated the release of Xcode 7.3 Official! 🎉| Caesar Wirth
In Swift, I try to use protocols as often as I can. I also like to use enums as often as is appropriate. Often times I find myself with an enum conforming to some protocol or another. For every property I implement, I have to switch self to get the right value – and this can get really old, really fast.| Caesar Wirth
If you’re developing in Swift and using the Swift Package Manager to manage your dependencies, you may have noticed that you can’t easily use Xcode to write your project. You aren’t able to import any of your dependencies into your package, and so tons of errors appear.| Caesar Wirth
Swift has reference types and value types. Even within the value types, there are different options to use! It can be kind of confusing to know when to use which. Knowing a little bit about what types work in which situations can really help out.| Caesar Wirth
Swift is a protocol oriented language, and I’ve found I can really provide a lot of power as well as flexibility by making good use of protocols.| Caesar Wirth
Pretty much everyone uses the Swipe Back feature that you get for free with UINavigationController. But what happens when you add some awesome animated transitions for your push actions? You can’t swipe back anymore!| Caesar Wirth
There’s a trap that people who write software often fall into. We can’t see our app in the same way a user sees it. This can sometimes lead us to create features that we think are super awesome, but it’s not actually what the users want. Or it’s too hard to use. Or it’s too confusing. Or maybe it’s just plain irrelevant.| Caesar Wirth
For years, Core Data has been the go-to persistence library for Mac and iOS apps. Recently, an alternative called Realm has come on to the scene, and is becoming quite popular. We gave it a shot, and ultimately chose to use Realm over Core Data in AmebaOwnd.| Caesar Wirth
When debugging, it’s important to know the exact state of your app in order to make sure it’s acting you want it to. If you’re writing an app that makes API requests, then you will most likely want to be able to see what data is coming to and from your app. Let’s take a look at how we can monitor HTTP and encrypted HTTPS traffic using Burp Suite.| Caesar Wirth
Hello, World!| cjwirth.com
You Can't Subclass UIColor| cjwirth.com