Let's face it, no camera is complete without that cool crisp shutter sound and a piece of art to put on the wall. In this video, learn how to add a capture button to your UI, and how to get the most out of your device aperture to get those really clean photos you always see in those ads. Also, learn about the implicit difference between processing a video frame from the stream and actually accessing the camera still capture functionality.
- [Instructor] Now let's put together everything…we've learned so far about making a reusable framework.…We want to enable our camera to be able…to capture still images.…The first thing we want to do…is make sure that we have a nice looking button…on the UI of our framework…so that we can easily capture those still images.…This means we'll need to add a media asset…to our reusable framework.…In order to do this,…we need to first add a media catalog…to our reusable framework.…Click on CameraViewController.swift…in your project tree to make sure you're in the right scope,…go to the top bar,…click file,…new file,…and scroll down until you get to the asset catalog icon…underneath the resource tab.…
Click next,…make sure that you're in the right folder tree…so that you're in your reusable framework group.…You can leave it named media…and click create.…You'll notice that underneath here…it's giving you an empty catalog…to star importing assets.…In your exercise files folder,…go to the resources folder…and you'll see that there's a file…
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
Swift 4: Protocol-Oriented Programmingwith Károly Nyisztor1h 44m Intermediate
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.