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