iOS Dev Weekly Digest | Latest Articles from the Community, Week #41
A curated collection of articles, videos, and links from top iOS blogs and YouTube channels, bringing you the latest insights and trends in iOS development.
How I Cracked the Object Oriented Design Interview at Amazon
Author: David Seek
Content type: Article
Unlock FAANG's Object Design Interview Secrets: Master the fundamentals of Object Oriented Programming (OOP) with our guide. Learn how to prepare for Amazon's OOP interviews, understand class design, and excel in extending functionalities through subclassing. Essential tips for aspiring FAANG engineers.
Using the #expect macro for Swift Testing
Author: Antoine van der Lee
Content type: Article
Swift Testing is Apple’s Swift framework for writing tests and introduces several macros, including the #expect macro. Where we had to use all kinds of XCAssert variations before, we can now rely on a powerful replacement that will help us debug tests more quickly.
Before exploring this specific feature of Swift Testing, I encourage you to read my introduction to Swift Testing article. Let’s dive in!
Toggling the Swift 6 language mode in Xcode
Author: Donny Wals
Content type: Video
With Xcode 16 you get access to the Swift 6 compiler. This compiler can compile your project in different language "modes". For example, Swift 5 mode which is the default mode for new Xcode projects.
Your Swift packages however will use the Swift 5 language mode by default.
In this video, we'll explore how you can set the Swift language mode in your projects and packages.
How to run Swift Data and Core Data operations in the background and share models across concurrency contexts
Author: Pol.
Content type: Article
Core Data is a powerful framework that allows you to manage the persistent model layer of your application and, while it is a first-party solution that has been a standard in the Apple ecosystem for many years, it is dated and is not straightforward to use.
In fact, the community has been asking for many years for a more modern and easier-to-use alternative to Core Data and, those wishes were finally granted with the introduction of the SwiftData
framework in WWDC23. While SwiftData is much simpler to set up and interact with than Core Data, it is a wrapper around Core Data and, as such, it inherits a lot of the bagage that developers dreaded when working with Core Data.
SwiftData Updates - Part 1: Mock JSON Data and PreviewModifier
Author: Stewart Lynch
Content type: Video
This year at WWDC and iOS 18, we got some new features in Xcode and Swift that are making our lives as developers a bit better. We got a new Preview modifier and some new features for Core Data. I this series, I am going to show you some of those new features. In this, the first of two videos, I am going to show you how you can build a JSON file representing Mock Data and import it into a SwiftData models in an in Memory container that has both one to many and many to many relationship. Then we will build a preview modifier that will allow us to use that mock data in any one of our 4 views to display sample data.
Mastering container views in SwiftUI. Values.
Author: Majid
Content type: Article
In the series final post about container views in SwiftUI, we will discuss container values and how SwiftUI allows us to propagate data through the container view logic. This week, we will learn how to declaratively define and pass container values.
iPhone 16 Screen Sizes
Author: useyourloaf.com
Content type: Article
Two new sizes as the Pro phones grow in size, and weight, and get even smaller bezels. Here’s what you need to know about the iPhone 16.
UserDefaults and Observation in SwiftUI: How to Achieve Precise Responsiveness
Author: Fatbobman
Content type: Article
In SwiftUI, Apple’s @AppStorage
property wrapper greatly simplifies the process for developers to respond to and modify UserDefaults content within views. However, with the introduction of the Observation framework, new challenges have arisen—Apple has yet to provide a UserDefaults management solution for Observation. This article will explore how to efficiently and conveniently manage data in UserDefaults under the Observation framework and propose a complete and practical solution.
Getting started with Mesh Gradients on iOS 18
Author: Donny Wals
Content type: Article
With iOS 18, we have the possibility to create mesh gradients. Mesh gradients are a really nice way to create very cool UI effects. In this post, we're going to explore exactly what mesh gradients are, how we can use them, and how we can even animate them to look really cool.
Migrating Combine to AsyncAlgorithms
Author: JACOB BARTLETT
Content type: Article
It’s no secret.
I’m a Combine fanboy.
I had a chip on my shoulder after missing the RxSwift bandwagon. Therefore, when Combine came out in 2019, I got serious shiny-object syndrome and used it wherever I could.
iOS Dev Tools: Screenshot Master, L10nGenie, App Launchpad
Author: IOS DEV TOOLS
Content type: Article
Swift Evolution Monthly: January '24
Author: CIHAT GÜNDÜZ
Content type: Article