Sponsored Link
Testing your mobile app internally isnāt enough to ensure its quality
Is your app slow to launch or load? Are network requests timing out? Are there rendering issues and UI hangs? Get a detailed distribution of UI hangs occurrences per screen with Instabugās triple threat of Application Performance Monitoring, Crash Reporting, and Bug Reporting and trace the issue. Get started now and ship apps users love.
News
iOS Dev Happy Hour
I've been slow to catch on to the phenomenon that is the iOS Dev Happy Hour. Organised by Allen Whearry, these meetings are a great way to meet fellow iOS developers. There are already ~700 people signed up for this event on the 19th! That's remarkable! I'll be there, will you?
Airport Design Awards
I linked to Airport back in Issue 469, and even though I feared that it might fall victim to Apple removing it from TestFlight, it has thrived there. They recently did their own version of the Apple Design Awards, featuring the best apps that aren't yet on the App Store. What a great idea, and congratulations to the winners!
Tools
How to configure Xcode projects for different environments?
Yunus KoƧyiÄit with some great advice on the various ways you can separate your production/staging/QA builds in the least disruptive way. It's not about multiple targets anymore!
lowmad
LLDB scripts can be great time savers, but who wants to manually edit their .lldbinit
file? This new tool from Johan Thorell will save you some time, and potentially help you discover some new debugging time savers.
I would just urge a little caution here. Not because of the tool, but because downloading someone else's LLDB script might cause the debugger to do things you don't expect, or worse. š Be careful out there!
Code
Snapshot Testing. Testing the UI and Beyond
You probably have some unit tests for your app, but do you do more than that? Here's Georgios Sotiropoulos with a three-part (part 1, 2, 3) look at many aspects of snapshot testing, and why you should automate not only basic tests, but tests of other aspects of your app, like dynamic type.
Georgios recommends the Point-Free swift-snapshot-testing which we also use to test the rendered HTML output from the Swift Package Index, which is open-source if you want to take a look at a practical example of this on a server-side Swift project.
Formatted Localizable Strings
At first glance, this article from Alex Grebenyuk might appear to be about formatting localisable strings. It is, but it's also about his Formatting library, and that solves a problem that I've repeatedly been frustrated by for years. What problem? You should read the article. š
Building a tvOS app in SwiftUI
We hear lots about building iOS apps with SwiftUI, slightly less about building apps on macOS, an occasional post here and there about watchOS, but nothing about SwiftUI on tvOS. Here's Daniel Saidi to rectify that with a great post on building a streaming app for the TV. Interestingly, he found performance problems with lazy grids, which I've not seen anyone talk about yet. I wonder if that's a tvOS specific problem?
Business and Marketing
Barter
For those times when you absolutely have to have your App Store sales figures available at all times, why not put them on your home screen? Here's a little app from Aaron Pearce that does exactly that!
For full disclosure, Aaron sent me over a promo code for this app.
Jobs
iOS Developer @ SpareRoom ā Want to work on an app repeatedly featured by Apple? One thatās received tens of thousands of 5-star ratings? Come and join us at SpareRoom, the UKās best-known flatsharing business. Weāre looking for an experienced, passionate developer to lead the development and delivery of our iOS app, at a really exciting time for the team and business. Get in touch! ā Manchester UK
iOS Developer @ Doximity ā Doximity, the medical network used by over 70% of US clinicians, is hiring passionate iOS engineers (remote friendly!). You'll get to be part of an amazing product team and work on an app that is constantly evolving. Use your skills (Swift, MVVM, FRP) to be an integral part of our newly launched telemedicine feature. Apply today! ā Remote within the US, or San Francisco CA
Mid-Level/Senior iOS/tvOS Developer @ Berlin Phil Media GmbH ā Join the team working on the Digital Concert Hall of the Berliner Philharmoniker ā the leading international video streaming platform for classical music concerts. You will be working on our highly visible iOS and tvOS apps. Development is fully native with fast adoption of the newest Apple technologies. Your contribution will shape a unique global service together with a small but powerful team. ā Berlin Germany
iOS Swift & iOS QA Engineer @ Redzone Production Systems ā Redzone is looking to hire talented Engineers to join our team. We build a communication and collaboration platform that enables frontline workers to resolve day-to-day production issues themselves before they become problems. (iOS, Swift, Scala, AWS, Kubernetes) ā Remote, Miami FL, or Birmingham UK
Senior iOS Engineer @ Branch ā Want to build transparent and honest financial services that help working Americans grow? Come join us! ā Remote within the US
And finally...
Swipe right if you like the way they indent their code...
I can't let this pass without also linking to Matthew's tweet. I saw so many people tweet about this app during the week, but Matthew made me chuckle the most. In fact, this tweet is much more fun than the app. š
Comment
This is a fascinating story from McLaren Stanley about a rewrite of the Uber app in the early days of Swift. If youāve not yet read it, go and give it a look now. I promise itās worth your time.
Itās easy to forget how rough the first couple of years of Swift development were, and how early adoption had a real cost. That cost might have been manageable in a small app, but this story is a rarely shared insight into what it was like at a big company that decided to go all-in so early.
Rewriting an app when a new technology comes along is so tempting. The idea of being able to remove all those imperfect decisions, and getting a āclean startā is intoxicating. Add the allure of the brand new technology into the mix, and it can be almost impossible to resist. Of course, the path is rarely smooth. New technologies often demo well but also have really spiky edges that hurt when you run into them. Youāre also just as likely to make a whole new set of bad decisions as you fix the last set. š¬
Weāre fortunate in software development that weāre able to go back and tweak the things weāve built. Weāre able to improve what we already have at the same time as shipping new features. Itās a rare privilege thatās not afforded to many industries. You canāt tweak a novel after itās been published, or a building after construction is finished.
Yes, it can be hard to make large architectural changes incrementally, but is it harder than making large architectural changes while also adopting a new language like Swift or a UI framework like SwiftUI?
The Swift transition is mostly done by now, and I expect the vast majority of you are now writing most of your new code in Swift. The SwiftUI transition period is still in full swing though, and once thatās done, thereāll surely be another tempting opportunity to rewrite! Weāre lucky with technologies like Swift and SwiftUI that Apple pays attention to interoperability, itās a great deterrent against the lure of the rewrite. š
That said, you should also be careful not to fall too far behind. Weāre now 18 months into SwiftUI, and if youāve shipped any part of a real app using it, youāre ahead of the curve. If youāve not yet had at least a little play with it in a demo/test app, youāre probably on the edge of lagging behind. Like everything in software development, itās a balance, and thereās no right answer. Just try and avoid being a zealot, or a curmudgeon. Stories like this are also a good reminder that being āpureā anything isnāt something to strive for, in my opinion.
The story McLaren tells worked out in the end, but he also refers to several people burning out. Iām glad they ended up in a good place, but you should treat this as a cautionary tale. Itās not the only time Iāve heard stories like this, and Iāve even participated in one or two over the years, although the scale of mine are much smaller.
Thanks for sharing McLaren!
UPDATE: Several people have messaged/tweeted me since yesterday about this sentence:
I should not have said ālagging behindā, and Iām sorry I wrote it. My intention was not to judge or make anyone feel bad, but I did, and Iām sorry. I do think that itās a good idea to have had a play with SwiftUI in some context, but youāre definitely not lagging behind if you havenāt.
Dave Verwer