Those Who Swift - Issue 196.

We are moving to Substack! 🚚
 

Those Who Swift

 

ISSUE 196.  January 9th 2025

 

Welcome to another issue!

 

We are moving to Substack! 🚚

As I mentioned in last week's newsletter, we are moving to Substack. I have managed to move 600+ people already, but it will take some time. Substack team reviews small batches for 4-7 days after they have been submitted.

I would really appreciate it if you subscribed to Substack and unsubscribe here. Curated account will be closed on February 1st.

substack.com

 
 

Swift Around the Web

 

Adopting Swift 6 across the app codebase

Learn about the benefits of Swift 6 for data security. To avoid data races, it recommends using structs over classes. Classes are still useful for managing shared states, especially in view models or with global actors.

swiftwithmajid.com

 

Understanding opaque types and protocols with associatedtype in Swift

Learn how to simplify the process of working with protocols associated with types by using opaque types, represented by the some keyword in Swift. Opaque types offer a cleaner alternative to generics, enhancing code readability and maintainability. The post illustrates how to use opaque types in function parameters and return types effectively.

tanaschita.com

 
 

Coding

 

Codable conformance for Swift enums

Learn how to make Swift enums Codable, enabling them to be serialized and deserialized for working with data formats like JSON.

This post explains automatic conformance for different enum types and covers customization techniques, such as mapping case names and associated value keys. It also discusses custom Codable conformance for complex scenarios.

nilcoalescing.com

 

Swift Parameterized Testing

Learn how to use parameterized testing in Swift Testing. It demonstrates how to use this feature with single and multiple arguments, including using zip to combine them.

This post highlights the benefits of parameterized testing, such as improved test readability and the ability to easily rerun individual failing test cases.

useyourloaf.com

 

Xcode 16's Buildable Folders

Explore Xcode 16's new buildable folders feature, eliminating the need for pbxproj file references. This simplifies project management by reducing merge conflicts.

The author describes the adoption process and highlights the removal of over 100 unused Swift files and a significant reduction in the size of the pbxproj file.

makwanbk.com

 
 

Apple News

 

iOS & iPadOS 18.3 Beta 2 Now Available

Developers can update to the iOS & iPadOS 18.3 Beta 2 SDK, bundled with Xcode 16.2, to test their apps against the latest API changes and incorporate new features. Key fixes include Genmoji generation, HealthKit authorization, and Writing Tools API issues.

apple.com

 
 

Design

 

Enhance UI/UX with the confirmation dialog component

Learn to use the confirmationDialog component in SwiftUI to create confirmation dialogs. These dialogs help users confirm actions, choose options, and cancel operations. It details the parameters used with confirmationDialog and includes a code example demonstrating its integration into a SwiftUI view.

createwithswift.com

 
 

Other Cool Stuff

 

Testing Background Uploads in iOS

This post refines recommendations for testing background uploads in iOS. It clarifies that invalidating URLSession.shared has no effect and that invalidating the background URLSession requires relaunching the app.

It also corrects the recommendation to use exit(0) in applicationDidEnterBackground(_:) for apps using scenes, suggesting the use of sceneDidEnterBackground(_ scene: UIScene) instead.

adamwulf.me

 

Creating tiny utility apps with SwiftUI Previews

Explore a technique for creating tiny utility apps using SwiftUI package internal views. Xcode can run these apps directly, reducing development time. The post demonstrates this technique with an example of a "Locale Explorer" app used with the KeyboardKit project.

danielsaidi.com

 

Markdown links can do what?

Discover how SwiftUI's Markdown links can be used for more than just linking to web addresses. By leveraging custom URL schemes, you can create interactive elements within your app.

These elements can trigger actions such as logging, custom functionality, or even animations.

jacobzivandesign.com

 
 

Tutorials

 

The Power of Protocols in Swift

A comprehensive overview of protocols in Swift. It covers key concepts like protocol definition, inheritance, composition, extensions, and generics. The article discusses the benefits of protocols, such as flexibility and reusability, and demonstrates their practical applications in real-world scenarios, including dependency injection, UI component design, and networking.

medium.com

 
 

Freebies

 

iOSDevKit - Cheat Sheets, Posters & Infographics

"iOSDevKit" offers a collection of high-quality cheat sheets, posters, and infographics designed to help iOS developers of all levels. It covers essential topics like Xcode, SwiftUI, and iOS development concepts, providing concise and visually appealing resources to improve learning and productivity.

Free and paid options are available.

gumroad.com

 
 

Videos

 

Interactive SwiftUI Chart - Drag to Show Data w/ Animation

This video demonstrates how to add interactive elements to a Swift Charts bar chart. By using the chartXSelection modifier, you can enable users to drag along the chart and display relevant data in an annotation view.

Sean Allen tries to cover key steps like matching data to the selection, building the UI, and implementing the lollipop annotation view, providing a practical guide to enhancing the user experience of your Swift Charts.

youtube.com

 
You received this email because you subscribed via the Those Who Swift site.
We'll be sorry to see you go but you can unsubscribe instantly.
 
Vilnius, Lithuania 🇱🇹
 
 

 
 
©2025 Those Who Swift | Privacy Policy | By Those Who Swift
 
Published with Curated