Ah, looks like #SwiftData still uses #CloudKit for sync and I don't see anything about improvements to that in this year's WWDC. The developer story around CloudKit is... definitely not my favorite. I would really love to see Apple improve this in future years. It makes Apple-native sync solutions a non-starter for me.
So for syncing data across devices, I will definitely still be using #Realm and MongoDB Atlas Device Sync.
Time to dive into local persistence…
From the #SwiftData docs:
> SwiftData has uses beyond persisting locally created content. For example, an app that fetches data from a remote web service might use SwiftData to implement a lightweight caching mechanism and provide limited offline functionality.
#Realm gets this really right. It can be an "offline first" DB and automagically handles network connectivity, conflict resolution, and integrating changes on a background thread.
Curious what this takes in SwiftData.
As a #Realm DB enthusiast, I'm really curious how #SwiftData compares.
The getting started experience is pretty slick. Creating a new iOS project using SwiftData populates:
- A default model
- ContentView has a NavigationView List with the model
- Default query
- Default funcs with animation to add and remove items
- Environment objects for the model container
Apple using its first party advantage!
Curious how it holds up w/more complex use. Psyched to learn more!
RT @scan_sky
23rd EBS Depart From Minot AFB 🇺🇸 & Head To Morón Air Base 🇪🇸 For BTF 23-2.
The 4 B-52s Departed As #REALM Flight With 2 Flying Straight To Morón & 2 Performing A Flypast In Tallinn 🇪🇪
I need Furniture on my #realm..but not like this!
#Minecraft #Xbox #MiM #supportsmallstreamers @StreamerWallcom@twitter.com @SGH_RTs@twitter.com @BlazedRTs@twitter.com @sme_rt@twitter.com @GamingRTweeters@twitter.com #Streamcaster @RetweetMCbot@twitter.com @ShoutGamers@twitter.com @TwitchRetweets@twitter.com @FatalRTs@twitter.com @fameRTR@twitter.com @livestreamersRT@twitter.com
#Realm #minecraft #xbox #MiM #SupportSmallStreamers #Streamcaster
Gaze beyond the heights
Into yon sacred night glow
Heaven's #realm of stars
#smallpoems #amwriting #Realm #575prompt #haiku #poetry
circumstance narrows
possibility's wide realm
to the merely real
#smallpoems #Poetry #Realm #575prompt
circumstance narrows
possibility's wide realm
to the merely real
#smallpoems #Poetry #Realm #575prompt
Anyone else having problems with #Realm on #Swift 5.7?
Problem is #async await and threading. #Github issue (https://github.com/realm/realm-swift/issues/7737#issuecomment-1260338517) has been opened.
Does anyone have the same problem or a possible solution?
#introduction
Oh, right, I suppose I should introduce myself!
I'm a #writer who gave up on #novels and #freelance work in 2017 for the much better-paying land of #technicalwriting - my day job is Developer Educator at #MongoDB . I prefer document and object databases over #SQL - #Realm is an awesome mobile DB.
I've been teaching myself #Swift and #SwiftUI. I released my first #iOS app in March, and hit the top of my category! Now I'm working on a #macOS app.
I live in Vermont, USA with my husband, our two dogs, and a very majestic cat. And my lovely green tractor. Lots of #gardening and outdoor projects.
We have an ambulance we converted to an RV for #overland #travel . Not traveling much currently.
Hoping to find "my people" in this strange new Fediverse I'm exploring.
#Travel #overland #Gardening #macOS #iOS #SwiftUI #swift #Realm #SQL #mongodb #technicalwriting #freelance #novels #writer #Introduction