In this video, learn how to get a camera running in your sample application. Dive into the basics of AVFoundation and how to set up your camera to actually stream what it sees through the lens to a view in your framework. Also, make sure you set up an easy function to call your camera into existence from any application.
- [Instructor] Now that we've created our workspace,…let's go ahead and get the camera working.…Inside your framework project file,…you're going to want to go ahead and create a new file…for your view controller that we're going to create.…Go to File, New, File, and create a Cocoa Touch class.…We're going to name it Camera View Controller.…It should be of type UI View Controller here.…Click Next, and it should create it…right in that right file folder for you.…Make sure that the CameraViewController.swiftfile…is inside the folder of all your sources…for your camera framework project file.…
At the top, you need to import AV Foundation.…It's important to point as we get started writing this code…that this course is not designed to be a deep dive…into AV Foundation, but we're obviously going to touch…on some points of AV Foundation here.…If you're interested in learning more on AV Foundation,…we have plenty of course available on it…that you should definitely check out.…After you type in import AV Foundation,…make sure you specify that this class…
Along the way, he explains the differences and nuances between writing code for an application and for a reusable framework, as well as some of the fundamentals of AVFoundation, one of the core camera frameworks in iOS. David also shows how to refactor your code, understand Swift access control, develop an interface, and handle memory leaks, so your framework is ready to share with other developers.
- Creating your first build
- Making the camera work
- Creating a framework delegate
- Adding media
- Capturing images
- Correcting orientation
- Versioning and tagging releases in Git
Skill Level Intermediate
Learning Server-Side Swift with Vaporwith Ron Buencamino1h 30m Intermediate
Learning Swift Playgrounds Application Developmentwith Steven Lipton2h 58m Intermediate
Swift 4: Protocol-Oriented Programmingwith Károly Nyisztor1h 44m Intermediate
Swift: Delegations and Data Sourceswith Steven Lipton31m 49s Beginner
1. Let's Make It Work
2. Let's Keep It Clean
3. Putting It All Together
4. Track It
Tagging releases in Git2m 36s
Next steps1m 47s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.