Saving Images Using Core Data

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

КОМЕНТАРІ • 10

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

    That was awesome, thank you.

  • @dcc1313
    @dcc1313 3 роки тому +2

    Hi, thanks for your videos, they are very helpful! Just two question: How do you create the Transformer ( ValueTransform) class for un Array? for example [URL]. The only way I could make it work without the warning in Xcode was setting "NSSecureUnarchiveFromData" in transformer field in attributes. The second question: Could be better store the url of the image in core data if it is located in the Documents directory o somewhere inside the sandbox of the app? the image can be bigger and maybe it can do problems if we saved it directly like your video?
    Thanks in advance

  • @TimMitra
    @TimMitra 3 роки тому +1

    Can you show how to load from Photo Library and also how to display the stored images in a Grid view.

    • @swiftui2
      @swiftui2 3 роки тому +1

      I believe you meant something like this one :
      SwiftUI: Saving Image in CoreData + ImagePicker and navigate to DetailView.
      ua-cam.com/video/vONKvL6B7Z4/v-deo.html

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

    great tutorial @Azamsharp 😉

  • @richardgomez9093
    @richardgomez9093 Рік тому

    hi nice video is it slow i want to store 2000 pictures into core data and i have table view than i will be using is if eficient? thnaks

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

    @Azamsharp. Great video. Glad to see you putting out more videos, especially the macOS stuff. Could you take a look at how to stop the "'NSKeyedUnarchiveFromData' should not be used to for un-archiving and will be removed in a future release" warning? I can't seem to find a solution with google.

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

    Great lesson, Thanks. It will be interesting to know the differences between saving as data vs transformable - are they same, or is any one approach better.

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

    Can this be used when selecting an image from the Image library and saving it to core data?

    • @jaylensmith6308
      @jaylensmith6308 2 роки тому +1

      Yes me from 10 months ago. Yes it can. But you don't have the skillset for it yet