My Images CD Part 3 (Sharing Images - 1)

preview_player
Показать описание
This is a continuation of the My Images Core Data series.
In this 3 part continuation of this series, we will be adding the ability to share your favourite images with other users of your app by creating a unique file that you can share as an email attachment to anyone else who has your app. When they receive the email and tap in the attachment, the user will be given the option of opening it using the app and have the image and all information about the image added to their Core Data database and the image to their documents directory

In this first video we will be adding new attributes to our Core Data entity and create a Universal Type Identifier that will be able to identify the content of your application's file that we will create for sharing.

We will see how the receiving device will recoginze files of that type and automatically open when receiving the new content.

In the following two videos we will work on interpreting the file that is received so that it can decode it and add to the receiving devices core data and documents folder.
If you want to support my work, you can buy me a coffee :)

Table of Contents:
0:00 Introduction
3:00 New Core Data Attributes
5:53 Updating the FormView
13:43 ShareService
18:20 Updating ImageFormView
22:16 Universal Type Identifier

Starter project And Resources

Completed code for this video

All videos in this series
My Images Core Data Part 1

My Images Core Data Part 2

My Images Core Data (Sharing Images) Part 3

My Images Core Data (Sharing Images) Part 4

My Images Core Data (Sharing Images) Part 5

My Images Core Data (Stored Images) Part 6

My Images CD Part 7 - CloudKit Sync with Core Data
Рекомендации по теме
Комментарии
Автор

Stewart, I've been a computer programmer since grade 10 in Hig👌h School (1967) (Autocoder on the IBM 1401 first generation computer). I was a COBOL, Fortran, (and Basic) programmer for 20 years before learning Visual Basic and Python. Then I took an interest in Apple's IOS platform, and switched over to SWIFT. I'm sure that you can imagine how impressed I am with your prowess, in this environment! I've followed many SWIFT/SWIFTUI instructors through YouTube and Udemy...many excellent teachers. None of them, though, have reached your level of technical capability, as far as I can see. You surely live and breathe this development world! Very well done, Stewart!👍👍

WilfClegg
Автор

Waiting to watch this when I have some quiet time to concentrate 🤩

cmtogether
Автор

Thank you Stewart for that lesson... Waiting for transformable

andrejkling
Автор

This is a great series, Stewart! Have you ever stored images directly in CoreData (via Transformable attributes)? If so, how did it go?

FloWritesCode
Автор

Please create a tutorial for CoreData Relationships, one-to-many and many-to-many... Such as a bookmark app that allows tagging. Thank you!

metzkarl
Автор

@17:30, you set the 'atomically' argument to false, instead of the normal "true".
Can you elaborate on this decision? (In my experience, it's always been safer to write files atomically.)
Cheers.

wmblemania
Автор

Can you please create a series of videos specifically explaining CoreData Relationships, such as one-to-many and many-to-many? I have tried following many other videos to build an app, but I have not found any explanations as clear as yours. Thank you so much🥹

metzkarl