Once-a-year Black Friday deals are coming. Read more.
Give your simulator superpowers

RocketSim: An Essential Developer Tool
as recommended by Apple

Issue 122
Jul 05, 2022

200 weeks, 4 years, resulting in over 200 articles!

That's right, today's article is my 200th article, and I've been writing them consistently over the past 200 weeks. Alright, I'll be honest, I've been less consistent at the beginning of my writing career, but I'm still very proud of this milestone!

An average week in 2018 gained about 8000 pageviews, while I'm currently close to 90K pageviews. It's been amazing to see the consistency paying out in reach.

Speaking of numbers, it's time to check in on my Q2 performance. Since the last issue we checked in on numbers, RocketSim grew from 193 to 307 active subscriptions with currently 27 active trials.

I didn't have much time to focus on Stock Analyzer due to my AppDevCon talk, but active subscriptions still grew from 5 to 6, and I currently have 2 active trials. Though: I'm working on a big update, so I'm hoping for better numbers next time we check-in!

Altogether I now have an MRR of $578, while my goal is to reach $1000 by the end of this year. On track, I would say!

Enjoy this week's SwiftLee Weekly!

THIS WEEK'S BLOG POST

After diving deep into opaque and existential types, it's now time to take a step back and look at generics. Generics are used in a lot of places inside the Swift standard library and prevent you from having to duplicate code. Though: generics are intimidating for many developers, both experienced and less experienced. I'll give you guidance on how and when to use them in your code.

SPONSORED

With a few lines of code, RevenueCat gives you everything you need to build, analyze, and grow in-app purchases and subscriptions without managing servers or writing backend code. Get started for free.

SWIFTLEE JOBS

(Germany)
Get your job positions listed on all 190+ SwiftLee articles and 4 SwiftLee Weekly editions. Read more.
Browse Swift-related Jobs, or add your own on SwiftLee Jobs.

CURATED FROM THE COMMUNITY

SWIFT

This article by Azamsharp is excellent for its solution and for the problem describing introduction. Your application might be re-rendering views unexpectedly due to a shared observable object. This article explains how you can detect and solve those accordingly.
I’ve linked to several articles in the past weeks covering the new ImageRenderer type, but none covered as much ground as this article by The Swiftui Lab. There are some possibly unexpected side effects when creating image renders of SwiftUI views.
It was fun reading this article by Jordan Morgan, starting with a shared story I recognized. The code examples helped me visualize the story, and I was happy to see the outcome of a new API that I didn’t know existed!
If you ever want to add a delay to a task, the method described by Nil Coalescing in this article should be the way to do it.
An exciting approach to improving test code by the team behind Point-Free. Their XCTest Dynamic Overlay framework from last year got a significant improvement worth checking out.
Connecting tasks to the lifecycle of a SwiftUI view can be an efficient way of ensuring you’re now performing any unnecessary work with your apps. Majid Jabrayilov explains how this works using the task modifier in SwiftUI.

TOOLS

Hidde Van Der Ploeg sharing us how to create App Store Preview videos. Note: you’ll have to dig into the RTs to get the complete answers, but doing so will give you several great insights.
The iOS Simulator comes with many great features, from which some might be lesser known than others. Aryaman Sharda covers the “Color Misaligned Images” menu item you can find in the Simulator menu options. Do you know what it does?
Eat your own dog food is a great way to improve your applications. I've been using the grid functionality lately for Stock Analyzer and found out something was missing. Check out to learn more!
I’ve read several “What’s new in Xcode 14” articles, but there were still a lot of new things in this article by Keith Harrison that I didn’t know. Previews have improved and look a lot better in Xcode 14. Especially the support for multiple previews side-by-side is excellent.
I’m always using Xcode Releases to access the latest Xcode releases quickly. Their latest update makes it possible to see the matching Swift version alongside the Xcode version.

THANK YOU

Thanks for being a SwiftLee subscriber!

All my content is available to you for free. Like what I do and want to support me?
Help me reach my Sponsor goal on GitHub.