Syncing SwiftData with CloudKit - SwiftData SwiftUI Tutorial 5/5

  Рет қаралды 6,728

Paul Hudson

Paul Hudson

Күн бұрын

Пікірлер: 21
@javierdejorgesanchez-garni1158
@javierdejorgesanchez-garni1158 9 ай бұрын
Hi Paul, thanks a lot for your videos. You mentioned in the video about using a real device instead of the simulator, but if you try the app in TestFlight, do you need to deploy the database into Production mode?? thanks in advance.
@martinmajewski
@martinmajewski Күн бұрын
If every attribute inside a Model is public now, how to prevent accessing those fields directly from within the code? For example if I use one attribute to compute a division somewhere, I don’t want it to ever become zero as a divisor. So without iCloud I would mark it private and have some setter function that checks the input for a zero value. But with iCloud nothing prevents me to use Xcode’s autocomplete function, accidentally select that attribute and assign zero to it. So you would have to mark those attributes somehow to make clear that these are de-facto private members by e.g. prefixing them with an underscore. However, if you do this along the way while using iCloudKit for some time you would need to provide a model migration plan. Such a cumbersome and not elegant way.
@kbusse
@kbusse 11 ай бұрын
Any specific reason why you haven’t instantianted jobs with an empty array?
@raytake899
@raytake899 11 ай бұрын
I hold the same question
@RobertHolzapfel
@RobertHolzapfel 3 ай бұрын
@@raytake899 because ... as he explained ... @Relationsships types must be optional!
@Spacer-l3j
@Spacer-l3j Ай бұрын
because it has to be optional
@richardwinters4114
@richardwinters4114 Ай бұрын
If you disable the cloud sync in the Settings for your app, all data on that device is lost.
@dodilodi1278
@dodilodi1278 Ай бұрын
Hi, is there a way to add Cloud sync in app only for some(e.g. subscribed) users? Or it is available by default for everyone?
@sumerjacob850
@sumerjacob850 Ай бұрын
Where am I getting this User, job and stuff my app has nothing in it, I checked all the stuff as well.
@kiransankarpati
@kiransankarpati 2 ай бұрын
Does this work if we deploy this app through ad hoc mode Sir, if in ad hoc device iCloud is logged in ?
@allenwixted1992
@allenwixted1992 Жыл бұрын
Any tips for previews crashing after iCloud integration?
@joyjain3111
@joyjain3111 9 ай бұрын
great🤩
@anotherguycalledsmith
@anotherguycalledsmith Жыл бұрын
Thank you very much ;-) Sorry, stupid question… Could I, as a developer have data stored in iCloud that could be displayed to my users - and alter that content dynamically from time to time? My idea is to have this content securely on Apple servers without offering an own web service… Thanks ;-)
@lorenzopirro2943
@lorenzopirro2943 9 ай бұрын
Hi! If you mean having RESTful web service (with the management of a database) provided by iCloud well no. You need to interface with the Javascript library or CloudKit with iCloud server services.This is possible with other external services.
@anotherguycalledsmith
@anotherguycalledsmith 9 ай бұрын
@@lorenzopirro2943 Ciao Lorenzo, thank you for your answer ;-) I have no idea of any back end stuff whatsoever… My idea was simply to have static content somewhere in Apple's iCloud and to point to this address from within my app, to display images for example. By doing so, my app could be “lean” in the App Store and content would only be loaded from Apple servers when needed. Without the need to establish an own web service that some users of my app might not want to trust - and to avoid any hacking of content from the “outside”. I do not plan to have huge amounts of content there, I just would like to know whether Apple would allow a similar approach like that. Thank you ;-)
@chezchezchezchez
@chezchezchezchez 2 ай бұрын
Anyone get this working perfectly from this tutorial?
Editing SwiftData model objects - SwiftData SwiftUI Tutorial 1/5
9:58
CloudKit - Intro, Pricing, Terms, & Definitions
17:26
Sean Allen
Рет қаралды 23 М.
From Small To Giant 0%🍫 VS 100%🍫 #katebrush #shorts #gummy
00:19
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 45 МЛН
Мама у нас строгая
00:20
VAVAN
Рет қаралды 11 МЛН
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 7 МЛН
8. SwiftData   CloudKit
18:20
Stewart Lynch
Рет қаралды 8 М.
How to use CreateML to generate Machine learning Models in Xcode - Xcode 15?
8:39
SwiftUI Card View - Group Box & Customizations
10:21
Sean Allen
Рет қаралды 17 М.
SwiftUI Data Flow in iOS 17 - Observation & @Observable
7:57
Sean Allen
Рет қаралды 56 М.
From Small To Giant 0%🍫 VS 100%🍫 #katebrush #shorts #gummy
00:19