Black Friday: Save 50% on RocketSim & Going Indie Course. Grab the deal.
BF: Save 50% on RocketSim & Going Indie Course.
Give your simulator superpowers

RocketSim: An Essential Developer Tool
as recommended by Apple

Issue 109
Apr 05, 2022

Inspect and copy elements right into SwiftUI code.

I'm sorry for those that didn't realize; RocketSim 8.0, including the SwiftUI inspector, is a simple result of a design mockup. I love the idea, but it's way too hard to build right now.

Every year, I enjoy thinking about an April fools joke. I contacted Paul Hudson a day before since I know he's in for some jokes. It resulted in a barking collaboration which I hoped you liked!

I wish I could write about WWDC 2022 today, but there's no information available yet. I even tweeted Tim directly, but he did not answer yet.

Let's hope for more info this week! Until then, enjoy this week's SwiftLee Weekly!

THIS WEEK'S BLOG POST

When animating views in SwiftUI, you often want to control which views animate and which do not. Up until iOS 15, we were allowed to use the animation(nil) modifier, but this method is now deprecated. This week, I ran into this issue and decided to find a future-proof solution.

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

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

Orta informs us about 2 CVEs raised, resulting in potential risk for your CocoaPods project. Check out the thread and ensure you’re updating your local installation of CocoaPods if you’re not yet using SPM.
I almost thought I was reading an April fools article, but it turns out Krzysztof Zabłocki went another treat for us! You might know him from Sourcery, making his new project Inject promising!
A technique I often use is demonstrated in this article by Keith Harrison. Dynamically changing your stack views based on the device size can be helpful in many cases.

XCODE

Marco Eidinger inspired me with this article and considered whether I should consider adding my custom SwiftUI views to the Xcode Library. I’m not yet sure since I don’t use the library yet, but I’ll reconsider soon to start using it and build up my set of views.
I’m thanking Dominik Hauser for reminding me about column breakpoints. I knew they existed, but I’ve not been using them yet! And I should. I often adjust my code to be able to set a breakpoint that is no longer needed.

OPTIMISING

Since I’m close to submitting my Stock Analyser app to the App Store, I’m running into valuable resources regarding App Store review preparation. I found this page provided by Apple a great help in this journey!
This week, a great reminder by Apple to explain to you how to promote your apps. One key thing I always do for my app release: announcing your upcoming release.

THANK YOU

Thanks for being a SwiftLee subscriber! 
Continue your journey: