CloudKit Tutorial: iCloud - Save Data in SwiftUI

Поділитися
Вставка
  • Опубліковано 14 січ 2025

КОМЕНТАРІ • 69

  • @rebeloper
    @rebeloper  5 років тому +3

    In this CloudKit Tutorial you will learn how to save data into iCloud with SwiftUI!

  • @pardeepgrewal7183
    @pardeepgrewal7183 2 роки тому

    Amazing video 😊

    • @rebeloper
      @rebeloper  2 роки тому

      Thank you 😁 BTW Check out RevenueCat - The BEST Service for In-App Purchases 👉 ua-cam.com/video/WechH9jx41w/v-deo.html

  • @DoubleCheapBurger
    @DoubleCheapBurger 3 роки тому

    This is such a helpful tutorial. Appreciate it!

    • @rebeloper
      @rebeloper  3 роки тому

      You're very welcome! BTW do you like CoreData? Check out Core Data in SwiftUI: ua-cam.com/video/_GJlFk-Hhz8/v-deo.html

  • @marwanzaarab6793
    @marwanzaarab6793 4 роки тому

    Thank you!!! Great content as usual.

    • @rebeloper
      @rebeloper  4 роки тому

      Glad you enjoyed it! BTW if you liked this video you will love *Swift Extensions* ua-cam.com/video/Gi47Oi8gKJE/v-deo.html

  • @agotamatyas3125
    @agotamatyas3125 5 років тому +1

    Awesome video! Thank you!

  • @jersey-dude
    @jersey-dude 4 роки тому

    Great little tutorial. Thank you

    • @rebeloper
      @rebeloper  4 роки тому

      Glad it was helpful! BTW take a look at my lates video on *CORE DATA ATTRIBUTES IN SWIFT [Tips to be Fast]* : ua-cam.com/video/c2Qtn5ehHMQ/v-deo.html

  • @dimiutube
    @dimiutube 4 роки тому

    Hey Alex! That video was very helpful as usual! Thanks for you efforts making things easy 👍🏽

    • @rebeloper
      @rebeloper  4 роки тому

      Glad you liked it! Wanna learn more? rebeloper.com/mentoring

  • @StewartLynch
    @StewartLynch 5 років тому +1

    Hi Alex. How about doing a video on synching Core Data with CloudKit? Would love to see that.

    • @rebeloper
      @rebeloper  5 років тому

      Hi Stewart, thanks for the suggestion. Have added to the list of ideas. Could you elaborate more about the structure you want to achieve?

    • @StewartLynch
      @StewartLynch 5 років тому +2

      Rebeloper - Rebel Developer I would like to see an example on how you would sync data from Core Cata to iCloud using Apple's new NSPersistentCloudKitContainer

    • @DimNovo
      @DimNovo 5 років тому +1

      @@StewartLynch Man, that's tough... But it must be a third - final part of this tutorial 💪🏻💪🏻💪🏻

    • @StewartLynch
      @StewartLynch 5 років тому

      Dmitry Novosyolov I actually just got it to work myself, so no rush now.

    • @rebeloper
      @rebeloper  5 років тому +1

      Could you share some code? I would love to see your implementation and maybe create a video around it 😀

  • @MrFinancce
    @MrFinancce 3 роки тому

    Thanks

    • @rebeloper
      @rebeloper  3 роки тому

      Welcome. BTW what do you think of my latest video on Flexible Header in SwiftUI: ua-cam.com/video/TaLA3ZBk6Zo/v-deo.html

  • @emilioschepis
    @emilioschepis 5 років тому

    I really enjoyed this first part! I have wanted to build an app with CloudKit for a long time so this video is very interesting for me. I will definitely watch all the videos as soon as they come out.

    • @rebeloper
      @rebeloper  5 років тому

      Hi Emilio, glad you are picking up CloudKit. The second part is out: ua-cam.com/video/bVSbRnHcXrA/v-deo.html what type of app are you building with CloudKit?

  • @smac-1960
    @smac-1960 5 років тому

    Thanks Alex, always great content mate 👍👍👍

    • @rebeloper
      @rebeloper  5 років тому

      Welcome. Glad you like it. Any suggestions for future videos?

  • @abdouett3676
    @abdouett3676 5 років тому

    Nice work. Thanks Alex!

    • @rebeloper
      @rebeloper  5 років тому +1

      You are welcome! Are you using CloudKit + SwiftUI in production?

    • @abdouett3676
      @abdouett3676 5 років тому

      Rebeloper - Rebel Developer
      I've been using swiftui since he got out, but I haven t used cloudkit yet.

    • @rebeloper
      @rebeloper  5 років тому +1

      😁 isn't SwiftUI a she? 😁 Anyway, if not CloudKit, are you using Firebase?

    • @abdouett3676
      @abdouett3676 5 років тому

      Rebeloper - Rebel Developer. 😉 I prefer Core data instead.

    • @rebeloper
      @rebeloper  5 років тому +1

      I see. Your app does not need external storage. Coe data is quite nice and really easy to use (compared to a few years ago) Can you elaborate on the authentication part?

  • @gaxxey4300
    @gaxxey4300 5 років тому +1

    Hey Alex, I've been trying to figure out how to put something to the right of the .navigationBarTittle, kind of like on the App Store (Games or Apps tab) they have the account icon on the right. Tried ignoreSafeArea and playing with offset but that doesn't work, any idea on a way of doing it?

    • @rebeloper
      @rebeloper  5 років тому

      I believe this could help: stackoverflow.com/a/57738518 Let me know

  • @marwanzaarab6793
    @marwanzaarab6793 4 роки тому

    It would be great to learn how to manage core data across multiple devices and for different users. For example, a user registers on the app and I store his Auth data on Firebase. Let's say that user buys a new phone, would CloudKit suffice to persist the user's data and fetch it back as is once the user reinstalls the app on his new device?

    • @rebeloper
      @rebeloper  4 роки тому

      This is a lot to cover in one comment. Let's meet on a mentoring session where i can go through it: rebeloper.com/mentoring
      BTW if you liked this video you will love *Swift Extensions* ua-cam.com/video/Gi47Oi8gKJE/v-deo.html

  • @victor_cuc
    @victor_cuc 3 роки тому

    Could you explain why we need UIKit as well as SwiftUI? Couldn't we have used just SwiftUI? Thanks :)

    • @rebeloper
      @rebeloper  3 роки тому

      Some parts are not available in SwiftUI. BTW do you like CoreData? Check out Core Data in SwiftUI: ua-cam.com/video/_GJlFk-Hhz8/v-deo.html

  • @williamstorey5024
    @williamstorey5024 5 років тому

    how do you save files to the CloudKit not just database records? I am making a checkbook app so I want a database with transactions and I want to be able to save receipts? do I have to save the files as a record?

    • @rebeloper
      @rebeloper  5 років тому

      You want to use CKAssets: www.hackingwithswift.com/read/33/4/writing-to-icloud-with-cloudkit-ckrecord-and-ckasset
      Let me know what you want to learn next: forms.gle/5GoVFuA79QRanbHXA

  • @JamesHillhouse
    @JamesHillhouse 5 років тому

    Quick question. How did you change the signature of the save(record: CKRecord, competionHandler: (CKRecord?, Error?) -> Void) to save(record: CKRecord) { (CKRecord?, Error) in }? It seemed like you did it in an instant. Just wondering how. Thanks Alex.

    • @rebeloper
      @rebeloper  5 років тому

      Hi James! Yes, it was in an instant :) I just pressed on the Return key on my keyboard to let Xcode autofill the completion handler witch in turn also has two fields that I can fill: (CKRecord?, Error). Hitting the Tab key iterates trough them. Are you using iCloud + SwiftUI in a production app?

  • @yixe2253
    @yixe2253 5 років тому +1

    0:35 I beg your pardon?

  • @James-pj6cg
    @James-pj6cg 4 роки тому

    When using cloudkit any private data is saved in the users iCloud account. What happens if their iCloud account is full?

    • @rebeloper
      @rebeloper  4 роки тому

      The data will not be saved and they will be notified to upgrade. 😊 BTW take a look at my video on UIColors in Swift: ua-cam.com/video/5BjpZc5TScs/v-deo.html

  • @juanignacioirasueguipalaci4206
    @juanignacioirasueguipalaci4206 4 роки тому

    I need your help. I'm following your video and I have the following error: Thread 1: Fatal error: "No ObservableObject of type ListElements found. A View.environmentObject (_ :) for ListElements may be missing as an ancestor of this view."Can you tell me where the error is? Thank you

    • @rebeloper
      @rebeloper  4 роки тому

      You haven't added the environment object to this view. BTW if you like this video I'm sure you will love my latest tutorial about Floating Buttons in SwiftUI: ua-cam.com/video/E3ks0l0Qbkc/v-deo.html

  • @farrasdoko4967
    @farrasdoko4967 4 роки тому

    Hello Alex glad you share it, thanks.
    I implement the code on my project, but I got freak error below. I created new project and re implement the code and its working. I used the same container for these two projects. Can you help me please. FYI, the code is exactly same.
    "
    "

    • @rebeloper
      @rebeloper  4 роки тому

      This is hard to debug, but i can help. Book a session here: rebeloper.com/mentoring

  • @anandsunku
    @anandsunku 4 роки тому

    How to access iCloud Drive folder

    • @rebeloper
      @rebeloper  4 роки тому

      You will have to use Private Database for that. I can show you how on a 1:1 mentoring: rebeloper.com/mentoring

  • @waiwaiwai8179
    @waiwaiwai8179 5 років тому

    I have been trying to search iCloud in Capabilities, but there isn't. How should I solve this case? Many thanks.

    • @rebeloper
      @rebeloper  5 років тому +1

      Is Xcode the lates version?

    • @waiwaiwai8179
      @waiwaiwai8179 5 років тому

      Rebeloper - Rebel Developer yes! Do I have to enroll the developer thing on Apple in order to use it? Thankssss

    • @rebeloper
      @rebeloper  5 років тому

      I don't know but it could be. I have always had a dev program :)
      Also let me know what you want to learn next: forms.gle/5GoVFuA79QRanbHXA

  • @GreenDevBabe
    @GreenDevBabe 4 роки тому

    Alex, how many users can use iCloud for free? I mean, when I have to pay for them?

    • @rebeloper
      @rebeloper  4 роки тому

      You can find pricing here: developer.apple.com/icloud/cloudkit/
      BTW take a look at my lates video: ua-cam.com/video/MNMWMyQcs_I/v-deo.html

  • @andrewiglinski148
    @andrewiglinski148 3 роки тому

    hahaha bud awesome video... it was super helpful but did you say "meat and balls"? In the US we say "Meat and potatoes". That has a little different of a meaning here.

    • @rebeloper
      @rebeloper  3 роки тому

      You are correct. I have realised it after I recorded the video LOL. BTW do you like the Previews in SwiftUI? Find out everything you have to know about Previews here: ua-cam.com/video/rxfter_wMXI/v-deo.html

  • @agotamatyas3125
    @agotamatyas3125 5 років тому

    #rebeloper