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 #1647 [Medium]

Tuesday, December 24, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Square. In front of you is a row of N coins, with values v 1 , v 1 , ..., v n . You are

Sentiment Analysis, Topological Sort, Web Security, and More

Tuesday, December 24, 2024

Exploring Modern Sentiment Analysis Approaches in Python #661 – DECEMBER 24, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Exploring Modern Sentiment Analysis Approaches in Python What are the

🤫 Do Not Disturb Mode Is My Secret to Sanity — 8 Gadgets I Want To See Nintendo Make

Tuesday, December 24, 2024

Also: The Best Christmas Movies to Watch on Netflix, and More! How-To Geek Logo December 24, 2024 Did You Know Their association with the Christmas season might make you think poinsettias hail from a

😱 AzureEdge.net DNS Retiring Jan. 2025, 🚀 Microsoft Phi-4 AI Outperforms, 🔒 Microsoft Secure Future Initiative

Tuesday, December 24, 2024

Blog | Advertise | View Online Your trusted source for Cloud, AI and DevOps guidance with industry expert Chris Pietschmann! Phi-4: Microsoft's New Small Language Model Outperforms Giants in AI

Mapped | The Top Health Insurance Companies by State 🏥

Tuesday, December 24, 2024

In 13 US states, a single company dominates the health insurance market, holding at least half of the total market share. View Online | Subscribe | Download Our App Presented by: Global X ETFs Power

The Stanford Grad Who Forgot How To Think

Tuesday, December 24, 2024

Top Tech Content sent at Noon! Boost Your Article on HackerNoon for $159.99! Read this email in your browser How are you, @newsletterest1? 🪐 What's happening in tech today, December 24, 2024? The

The next big HDMI leap is coming

Tuesday, December 24, 2024

Sora side hustles; Casio's tiny watch comes to the US -- ZDNET ZDNET Tech Today - US December 24, 2024 Ecovacs Deebot T30S Combo robot vacuum and mop The next big HDMI leap is coming next month -

⚙️ Robo-suits

Tuesday, December 24, 2024

Plus: The data center energy surge ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Apache Tomcat Vulnerability CVE-2024-56337 Exposes Servers to RCE Attacks

Tuesday, December 24, 2024

THN Daily Updates Newsletter cover The Data Science Handbook, 2nd Edition ($60.00 Value) FREE for a Limited Time Practical, accessible guide to becoming a data scientist, updated to include the latest

Edge 459: Quantization Plus Distillation

Tuesday, December 24, 2024

Some insights into quantized distillation ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏