With Mac Catalyst and SwiftUI support for macOS, Apple has been pushing new tools to the community for the past couple years to create new services on Mac computers. Does it mean you should do too? Here are couple things to consider first. During WWDC 2019, Apple released Mac Catalyst for developers to turn their […]
Posted by Eric Firestone and Jake Wharton on August 19, 2020 We’re excited to announce support for Swift in Wire. Wire already supports compiling your protocol buffer files into Java and Kotlin, and today Swift joins that family. Protocol buffers are a powerful and efficient way to transfer data between devices. The format was created by […]
In the last couple years, Apple has made some good efforts to improve their testing tools. Today, I’ll walk you through some tips to make sure your test suite run at their best capacity. Project configuration and testing environment If you haven’t added yet some unit tests in your app, the first step is to […]
A recurring challenge in programming is accessing a shared resource concurrently. How to make sure the code doesn’t behave differently when multiple thread or operations tries to access the same property. In short, how to protect from a race condition? To build a Thread-safe data structure, we need to briefly walk through concurrency principles in […]
About a month ago, it became possible to run Swift code on AWS Lambda. I was really interesting to try and see how easy it would be to deploy small Swift functions as serverless application. Let’s see how. If you missed the news, Swift code running on AWS Lambda is available under couple conditions, but […]
Since January, I’ve been slowing down blogging for couple reasons: I started doubting about myself and the quality of my content but I also wanted to focus more on some fundamentals I felt I was missing. So I committed to a “100 day challenge” coding challenge, focused on data structure and algorithm in Swift. Before […]
Problem I wrote the first version of iHarmony in 2008. It was the very first iOS app I gave birth to, combining my passion for music and programming. I remember buying an iPhone and my first Mac with the precise purpose of jumping on the apps train at a time when it wasn’t clear if […]
Following up previous articles about common data structure in Swift, this week it’s time to cover the Tree, a very important concept that we use everyday in iOS development. Let’s dive in. Concept Opposite to linear structure that we’ve covered like Queue or Stack, a Tree is hierarchical structure represented by a set of linked […]
It has been a couple of months since my last post. I have been quite occupied with a big project where I am helping to modernize its archaic code-base. On a daily basis, I spend a lot of time debugging and I am usually using several LLDB commands over and over again. For this purpose, I […]
Recently, I was looking into a bug where the UITabBar was inconsistently disappearing on specific pages. I tried different approaches but I couldn’t get where it got displayed and hidden. That’s where I thought about KVO. Some background on my issue, I had a custom TabBarController inheriting UITabBarController which hides or shows its tabBar based […]