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
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.