Make everything a framework! Think of frameworks like toolboxes—whenever you need to work on something in your garage, you don't build a new wrench for each bolt you need to fasten, but you use the one you've always trusted. You should treat your code and your applications the same way, and this is a great way to think about how you handle everyday tasks at your job or your hobby.
- [Instructor] Congratulations.…You've made and released a framework…for you to use in any iOS application you want.…The good thing about this is…you can add features to your camera as you go.…Let's take a look at a repository…that I have up on GitHub right now…that this course is based on.…It's called Lumina and you can find it at this URL.…At my previous job I did a lot of work with image processing…and I needed to be able to pass off…those frames that I would capture with the camera…to do post-processing, whether it was going to be…for object recognition, or for machine learning,…or any number of reasons.…
I made this framework out of necessity…and I hope I've imparted upon you the benefits that you get…out of making such a framework.…If you look through this,…you'll notice that there's a couple of different ways…to install a third-party library in iOS.…Some of the dependency managers available…are CocoaPods and Carthage.…Carthage is really easy to use.…If you set up your repository on GitHub,…anybody who uses a Cartfile is ready to download…
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