iOS Dev Weekly - iOS Dev Weekly - Issue 621

Is it finally time for a quick take on SwiftData? 📸
 

iOS Dev Weekly

 
View on the Web    Archives

ISSUE 621  August 4th 2023

 
Comment

  Comment  

 

I’ve struggled to know what to write about SwiftData since its debut a few weeks ago, but Pietro Rea’s recent article inspired me. Take a moment to read it before we continue.

A more Swift-friendly data persistence framework is a very welcome addition to our toolkit, but Pietro is correct when he says:

Core Data’s main problem was not a technical problem. It was a marketing problem!

Setting up a Core Data project isn’t excessively complicated, but it can be intimidating, especially for newcomers to Apple platform development. Many years ago, I delivered Objective-C and iOS development training courses, and Core Data always felt like a step too far for a five-day course where students started with no Objective-C knowledge on day one. The code-first approach of SwiftData feels instantly more approachable, so much so that I might have considered covering it in that same training session. That’s a huge step forward.

But Core Data could also feel a little too much for some tasks, leaving you with decisions to make. “Does this data deserve Core Data, or would an atomically loaded property list file fit the task better?” I also don’t get that feeling anywhere near as much with SwiftData.

But while it’s always fun to get something new, it would be so wasteful to throw away the effort that Apple invested into Core Data over the eight years it has been around, especially when it ties so closely to CloudKit and many other technologies. New code means new bugs and the worst bugs lurk in data persistence code.

So, I was delighted to read this line:

SwiftData uses the proven storage architecture of Core Data, so you can use both in the same app with the same underlying storage.

It’s not entirely clear to me how much of Core Data remains, and it’s still early days to call SwiftData a triumph since it’s still in beta, but Apple may have got it right with SwiftData.

I can’t wait to confidently answer “How should I store data in my app?” with a simple “SwiftData”.

Dave Verwer  Permalink

 
 

  Sponsored Link  

 

Fast, AI-powered test automation for web and mobile with Testim

We're built to help Agile teams efficiently manage and scale their automation projects. Quickly author AI-stabilized UI and end-to-end tests on real and virtual devices. Learn more about Testim Mobile.

testim.io  Permalink

 
 
 

  News  

 

Xcode 15 beta 5 and TestFlight

Here we go! If you’ve been working on a beta this summer, you can now get it on TestFlight! 🚀 I’m not quite sure what they mean by “visionOS 2 beta“, did I doze off and miss visionOS 1? 😴

apple.com  Permalink

 
 

  Tools  

 

Smart Open Xcode

What a great tip from Christian Selig for those times of the year when we are all running beta versions of Xcode. Hammerspoon is also an excellent utility that has given me many years of trouble-free automation.

christianselig.com  Permalink

 

Xcode Search Scopes

I’m a fan of the Xcode feature in this latest tip from Dominik Hauser. I have a scope set to all Swift files in the Swift Package Index project to filter out results in CSS and JavaScript files. It’s useful! 👍

xcode.tips  Permalink

 
 

  Code  

 

Composable Architecture 1.0

More than three years after I heard about it, Brandon Williams and Stephen Celis have added the finishing touches to the 1.0 release of swift-composable-architecture this week. They even went the extra mile and made a DocC interactive tutorial!

For full disclosure, Point-Free sponsors the Swift Package Index. This newsletter is not directly related, I am involved in both, and I guess that’s what full disclosure means!

pointfree.co  Permalink

 

TipKit Examples

If you’ve not checked out TipKit yet after last week’s link, then maybe this example repository from Jordi Bruin is the inspiration you need. It looks like he has example repositories for visionOS, the dynamic island, and Swift Charts, too!

github.com  Permalink

 

SwiftData Saving Changes

So many SwiftData posts this week! Here’s Keith Harrison looking at when it saves data compared to Core Data.

useyourloaf.com  Permalink

 

Objective-C Internals

Whether you want a trip down memory lane, or to dive deep into the internals and history of Objective-C, Brian Kelley is sure to have something for you in this series of posts that captures a slice of history.

alwaysprocessing.blog  Permalink

 
 

  Design  

 

AR Quick Look Gallery

What a handy page full of example 3D models Apple has provided everyone! Thanks so much to Hidde van der Ploeg for pointing it out!

apple.com  Permalink

 
 

  Videos  

 

How to Easily Persist Data in SwiftUI

Talking of SwiftData, how about a guide through the basics from Karin Prater? She builds the ultimate example app when you want to play with a persistence framework, a to-do list app!

youtube.com  Permalink

 
 

  And finally...  

 

Fancy a trip down memory lane? ❤️

 Permalink

 
You received this email because you subscribed via the iOS Dev Weekly site.
We'll be sorry to see you go but you can unsubscribe instantly.
 
Shiny Development Ltd. Daresbury Innovation Centre Keckwick Lane Daresbury Cheshire WA4 4FS United Kingdom
 
 

 
 

RSS

 
©2023 iOS Dev Weekly | Privacy Policy | Mastodon | Twitter | Suggest a Link
 
Published with Curated

Older messages

iOS Dev Weekly - Issue 620

Friday, July 28, 2023

Do you want to get a Vision Pro all for yourself, spend a day with one, or have someone else spend time with one for you? 🥽 View on the Web Archives ISSUE 620 July 28th 2023 Comment I won't go into

iOS Dev Weekly - Issue 619

Friday, July 21, 2023

How do you build a habit-building UI for the long term? ♻️ View on the Web Archives ISSUE 619 July 21st 2023 Comment Note: This issue's comment relates to app design, but the writing is less

iOS Dev Weekly - Issue 618

Sunday, July 16, 2023

Hearing about the experience of using Vision Pro from a developer's perspective is important 🧑‍🔬 View on the Web Archives ISSUE 618 July 14th 2023 Comment It's been a few weeks since they were

iOS Dev Weekly - Issue 617

Friday, July 7, 2023

Is visionOS the first iOS-based platform where Xcode might make sense? 🥽 View on the Web Archives ISSUE 617 July 7th 2023 Comment I've never been very excited about the prospect of Xcode on iPad¹.

iOS Dev Weekly - Issue 616

Friday, June 30, 2023

Let's talk about nutrition, shall we? Wait, what do you mean "Not that type of macros!" 🫘 View on the Web Archives ISSUE 616 June 30th 2023 Comment Macros in Swift are this year's big

You Might Also Like

Daily Coding Problem: Problem #1446 [Medium]

Sunday, May 19, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a set of closed intervals, find the smallest set of numbers that covers

RD#456 Data Fetching Patterns in Single-Page Applications

Sunday, May 19, 2024

Five patterns to help Single Page Applications fetch data from remote sources ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

C#506 .NET 9 LINQ Performance Edition

Sunday, May 19, 2024

The team has been working on improving performance ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

PD#574 Programming like it’s 1977

Sunday, May 19, 2024

128 bytes of RAM, no operating system, and limited types of sprites ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Defeating Mouse Lint 🖱️

Sunday, May 19, 2024

How optical mice scrolled past rubber balls. Here's a version for your browser. Hunting for the end of the long tail • May 19, 2024 Hey all, sorry this is running a little late. Last week's odd

Android Weekly #623 🤖

Sunday, May 19, 2024

View in web browser 623 May 19th, 2024 Articles & Tutorials Sponsored Webinar: Compiler Technology vs Wrapper Solutions The right mobile app protection secures apps and SDKs against threats such as

Does AI spell doom for the open web?

Sunday, May 19, 2024

Plus, a proposal for Melinda French Gates View this email online in your browser By Anthony Ha Sunday, May 19, 2024 Image Credits: Google OpenAI and Google both made big announcements this week —

Sunday Digest | Featuring 'Visualizing the Tax Burden of Every U.S. State' 📊

Sunday, May 19, 2024

Every visualization published this week, in one place. Visual Capitalist Sunday Digest logo May 19, 2024 | View Online | Subscribe | VC+ The Best of This Week's Visuals Presented by Voronoi: The

Setapp's alternative mobile App Store & Subconscious winding down

Sunday, May 19, 2024

AI's major alien concept is transparency, Setapp launches alternative mobile App Store, The Happiness Trinity, and a lot more in this week's issue of Creativerly. Creativerly Setapp's

This Week's Daily Tip Roundup

Sunday, May 19, 2024

Missed some of this week's tips? No problem. We've compiled all of them here in one convenient place for you to enjoy. Happy learning! iPhoneLife Logo View In Browser Your Tip of the Day is