2. Camera Photos SwiftData: Update/Edit and PhotoPicker

Опубликовано: 24 Апрель 2024
на канале: Stewart Lynch
1,131
86

This is the second in a series of 3 videos where I will show you how to add a photos picker or choose, and use a camera to take photos and persist those photos to a Swift Data data Store.
In this video, you will create a viewModel and view for presenting both updates and the creation of new objects for your data store and use the PhotosUI photoPicker for choosing a photo from your photo album to update the data property in the SwiftData model.

If you want to support my work, you can buy me a coffee :)
https://ko-fi.com/stewartlynch

******* Download my StewartLynch YouTube Channel Application - Free **********
https://stewartlynch.gumroad.com/l/obsjz

Table of Contents:
0:00 Introduction
1:15 UpdateEditFormModel
4:58 UpdateEditFormView
7:54 PhotosUI and PhotosPicker
13:20 FormType Enum
15:32 Presenting the Form

Starter Project Branch:
https://github.com/StewartLynch/Camer...

Completed Branch:
https://github.com/StewartLynch/Camer...

Complete Series Playlist
   • PhotoAlbum or Camera  

Tutorial References
PhotosUI Tutorial
   • PhotosPicker - SwiftUI  

ImagePicker Gist
https://gist.github.com/StewartLynch/...

Other Recommended Resources:
RocketSim - Build Apps Faster
https://gumroad.com/a/122988499/ftvbh

BigMountain Studio Books
SwiftData Mastery in SwiftUI
https://www.bigmountainstudio.com/swi...
SwiftUI Views Mastery
https://www.bigmountainstudio.com/vie...
SwiftUI 5 Book Bundle
https://www.bigmountainstudio.com/boo...
Combine Mastery in SwiftUI
https://www.bigmountainstudio.com/com...
Core Data Mastery in SwiftUI
https://www.bigmountainstudio.com/cor...
SwiftUI Animations Mastery
https://www.bigmountainstudio.com/ani...

AppCoda Books
Beginning iOS 16 Programming with Swift (SwiftUI + UIKit)
https://gumroad.com/a/646790611/WihuX
Beginning iOS 16 Programming with Swift (SwiftUI + UIKit) - Starter
https://gumroad.com/a/646790611/mOzKq
Mastering SwiftUI 4 + Swift Programming for iOS 16 - Professional
https://gumroad.com/a/646790611/gjPBw
Mastering SwiftUI 4 - Starter
https://gumroad.com/a/646790611/TyNEz

Other References:
Stewart Lynch's YouTube Channel:
   / @stewartlynch  
Stewart Lynch on Mastodon:
https://iosdev.space/@StewartLynch
Stewart Lynch On Threads:
@StewartLynch
Stewart Lynch on X:
https://x.com/StewartLynch
Stewart Lynch on LinkedIn
  / stewartlynch