Setup CloudKit in SwiftUI project and get user info | Advanced Learning #21

preview_player
Показать описание
Let's jump into the wild world of CloudKit! CloudKit is a super powerful framework that allows us to connect our app to Apple's iCloud database. We can then use that database as a backend for our app. In this video we will connect our SwiftUI project to CloudKit, set up a CloudKi container (basically a database) and then fetch the current user's info.

🤙 WELCOME BACK 🤙

Рекомендации по теме
Комментарии
Автор

Nick! You don't know how much I've been looking for a complete CloudKit tutorial :O... This will save my ass soooo much! Keep up this awesome series and I hope you can cover all CloudKit functionalities as much as you can because I was really looking forward to see the power that CloudKit can give. Thank you again!

mke
Автор

This is amazing Nick! Thank you. I can't wait to see more CloudKit videos!

Connor-pjtg
Автор

Hi! Thank you for making this video! It's so helpful for learning how to develope the iCloudKit. BTW, I have one question: at 14:29 in this video, how did you make that func to choose and make a Vstack? Thanks,

이가은-cg
Автор

Thanks Nick! Followed your Tutorial and it worked like a champion. Appreciate you putting this out to the community.

chrislangston
Автор

Is cloudkit still worth learning? If so I'd love to see a playlist.

markmartin
Автор

You have a gift for teaching. Very clear, easy to understand code. Great job. I’ll have to add more coffee money to your account to keep you going..bob

bbulliard
Автор

Great job as usual, Nick! You have a genuine knack for hitting the things that matter. Question of the sequence of events ... first you call getiCloudStatus, which does an CKContainer api (I assume this is asynced, right?), immediately you call requestPermission. Could the CKContainer api not yet be complete when you call requestPermission, or is the getiCloudStatus always going to be done executing before requestPermission is called? I don't quite understand - does the requestPermission func need isSignedInToiCloud to be true for the func to give the correct result, or does it not matter whether the user is signed in for requestPermission to work? Thanks for your help!

dr.craigcurphey
Автор

Hi Nick, very nice intro and well explained tutorial!

arkemal
Автор

It’s the future, please do a full playlist for CloudKit, specifically SHARING 😅

adamcm
Автор

Thank you for sharing such helpful content! I've learned a lot from this video.

developer.yilmazer
Автор

Finally! Nick, you're the best! I became a developer watching your channel. P.S. I'm a UI designer.

degisner
Автор

Great video, thanks for creating content around CloudKit. Been a big fan of CK since the beginning but there has always been a lack of good documentation and learning resources on the topic.

lance
Автор

Awesome to watch, I am keeping waiting for you updates.💎

Awesome奥深
Автор

Hi, much thanks for your courses, I learned a lot really. Now, I can use CKContainer to CRUD public database of my container, which I can call it as "online mode" of my APP. But, if there is a "offline mode" of my APP, I use Core Data to read and write, how can these operations synchronze to the public database? Since I know, the NSPersistentCloudKitContainer support privdate database well and thought supports public database but now very well. I think in the offline mode of my APP, to enable data synchronization to public database when network is available, I have to continue to use Core Data and use CKContainer to manually upload loal changes to public database. Am I right?

WeirdTKJackson
Автор

on 22:42 is there any way to fetch the actual name of the user, for example if the iCloudAccountStatus is .available, to show something like "Hello Nick Sarno !" ?
(Edited 10 seconds later: OK got it !!)

evangelosspyromilios
Автор

Hi Nick,
Fantastic tutorial as always. I found one small issue that tripped me up several times when I tried to request application permissions using async await, and I thought I'd add it here in case others who follow your series hit the same snag. I kept getting a notice in the console: [CK] Could not validate account info cache. (This is a potential performance issue.). When I requested permission in the app, the oddly-worded dialog you mention at 30:10 came up, but when I clicked 'Allow', it fails to return a CKPermissionStatus. The fix is perhaps obvious to most, but took me most of a day to figure out: you have to go to the CloudKit Console. . . Indexes and create an index for the Users. The 'validate info cache' message goes away, and the permission status is set to granted. Keep up the great work!

bobearl
Автор

A lot of these functions from CloudKit got deprecated in iOS 17. Finding it really hard to understand what replaces them now.

DavidM
Автор

Hello Nick, as always, you are super... May I ask one question: I am based in the EU, and according to the DGPR law, how does CloudKit work under the hood? Is cloud kit safe for hack attacks or similar?
Thanks for your attention

Decatilinae
Автор

Hi Nick. Quick question. Despite requesting permission, the returnedStatus is always could not complete. Did you have any experience with this, or any tips to fix this issue?

Connor-pjtg
Автор

The permissions pop up does not come on my screen, does anyone know why it is not working?

dennismallette