Architect Your Applications With MVVM
“I don’t feel in control of my project’s architecture.”You
“MVC simply doesn’t cut it. There must be a better solution.”Yours Truly
Massive View Controller Syndrome
Firing up Xcode and starting a new project is a great feeling. The first few days or weeks don’t feel like work. Everything goes according to plan.
But as the code base of your project grows, it becomes harder and harder to manage the project. The view controllers of your project start to put on weight … a lot of weight. They become more than view controllers. They take on responsibilities they didn’t sign up for. Don’t they?
Yet you’ve done everything right. You’ve stuck to the rules of the Model-View-Controller pattern. Why have you coded yourself in a corner? And why is it frustrating or downright scary to add features or refactor existing functionality?
It’s Time to Cure MVC
If your project is suffering from Massive View Controller syndrome, then the Model-View-ViewModel pattern is the cure to your problem. The Model-View-ViewModel pattern has been around for many, many years, but it only recently gained traction in the Cocoa community.
MVVM extends MVC by resolving common issues. The result is a robust application architecture with lean view controllers, improved testability, and a better separation of concerns. How does that sound?
Architect Your Project With MVVM
In Mastering MVVM With Swift, we refactor an existing application built with MVC to use MVVM instead. The results are dramatic and the MVVM pattern is surprisingly easy to adopt in your own projects.
You learn the differences between Model-View-Controller and Model-View-ViewModel, highlighting the benefits Model-View-ViewModel has over Model-View-Controller.
After a short introduction, we take an application built with Model-View-Controller and refactor it to use Model-View-ViewModel instead. Along the way, you learn about the anatomy of view models, how to create them, and how to test them.
Last but not least, we add protocols and protocol-oriented programming to the mix to further simplify the view controllers in the project.
At the end of this course, you have the knowledge and, more importantly, the hands-on experience to apply Model-View-ViewModel in your own projects.
Ready for Xcode 8 and Swift 3
In this course, you learn everything you need to know to integrate MVVM in a new or an existing Swift project. We focus on the key aspects of the pattern and refactor an application that takes advantage of the core features of MVVM. We use the latest and greatest to build an application, which means we use Xcode 8 and Swift 3.
“It suddenly hit me that taking my career serious meant leaving my comfort zone. It turned out that MVC was my comfort zone.”
Battling Massive View Controller Syndrome
Are the view controllers of your projects suffering from Massive View Controller syndrome? You’ve carefully crafted the architecture of your application using the Model-View-Controller pattern and, yet, the view controllers of your project are ready to burst and they’re impossible to test.
Adding a feature forces you to wade through hundreds of lines of code. You hope you don’t break anything while you carefully add a few lines of code. Don’t get me wrong. Your code isn’t bad. But there’s just so much of it. You’ve applied the Model-View-Controller pattern like you were told to and you still end up with an architecture you aren’t quite happy with. Does this sound familiar?
It’s Not You. It’s MVC.
Because Apple’s frameworks are impregnated with the Model-View-Controller pattern we think it’s the right or only tool for the job. Don’t make the same mistake. There’s nothing wrong with the Model-View-Controller pattern, but there are better alternatives, especially if you’re using Swift.
Put Your View Controllers On a Diet
It’s time to put the view controllers of your project on a diet. I’m sure you’ve heard about the Model-View-ViewModel pattern. It’s the new cool kid in town. But the thing is that it isn’t a kid. MVVM has been around for many, many years and has earned its stripes. It’s a proven strategy for robust, scalable applications.
Where Should This Code Go?
I bet you’ve asked yourself many times “Where should I put this piece of code?” Every developer asks himself/herself this question, multiple times a day. If you’re still using MVC, then chances are that the answer is “the view controller”. Stop. Give MVVM a shot. You can thank me later.
MVVM is a perfect fit for Cocoa applications powered by Swift. The view model unburdens the view controller from the ungrateful task of data manipulation and transformation. The result is a focused, testable view model and a skinny, lightweight view controller.
Mastering MVVM With Swift
The Model-View-ViewModel pattern isn’t rocket science. In this course, you learn the ins and outs of the Model-View-ViewModel pattern by refactoring an application built with MVC.
You learn how to create, use, and test view models. You use protocol-oriented programming to further simplify the view controllers of the project. You also learn how to easily adopt the Model-View-ViewModel pattern in your own projects.
Stop wasting time trying to fit your application’s architecture in the Model-View-Controller pattern if you have an alternative with a proven track record. Did I mention that this course uses the latest Swift syntax?
“It hit me that MVC just didn’t cut it. I realized it wasn’t my fault, though. MVC isn’t designed for modern application development.”
Even though I was already familiar with MVVM, Bart’s course showed me a different perspective on MVVM by refactoring a complete application built with MVC. He illustrates how MVVM can improve a project’s architecture and testability, and how reactive programming fits in.Damian Esteban
This is one of the finest Swift material available on the internet. Thank you.Rakesh Kusuma
It has been a pleasure to work with Bart. I’ve found him to be diligent, conscientious, and reliable. His own competence has made my job much easier. And his skill as an iOS developer continues to amaze me.Adam Brown
You made a daunting subject a lot more manageable.Kitson Broadhurst
A big thank you. This has been the single most effective course I've taken about iOS. I put it into practice right away and our App Store app, and its testing, has benefited greatly.Jake Young
This is by far the best explanation of Core Data I have read. After working on my first Core Data project for the last three days, I actually understand what you are saying here.Gravity Zero Design
Wow, I really love these tutorials. Great job. You are very good at explaining things from the ground up in a way that is both fast (not boring) and yet comprehensive.Jonas Nelle
Is This Course for you?
You Are Fed Up With MVC
You already have experience building applications using Swift and Xcode, but you’re not happy or fed up with the MVC pattern.
You Are Looking for a Better Solution
You know it’s time to step up your game. It’s time to move beyond the Model-View-Controller pattern. You’ve outgrown MVC and are ready for MVVM.
You Want to Build Scalable Applications
Your goal is to build robust, scalable applications for Apple’s platforms using Swift.
You Want to Learn From a Professional
You don’t want to plough through countless tutorials—most of which are out of date—that only show you partial implementations.
Frequently Asked Questions
When does the course start and finish?
The course starts now and never ends. You learn at your own pace. You decide when you start and when you finish. I am here to help you along the way if anything’s unclear.
How long do I have access to the course?
How does lifetime access sound? After purchasing the course, you have unlimited access to this course for as long as you like. You can access the course on any device you own.
What if I am unhappy with the course? Can I get a refund?
I would never want you to be unhappy. If you’re unsatisfied with your purchase, contact me within the first 30 days and I’ll give you a full refund.
Something’s not clear. Where can I get help?
If you need help with something related to the course, then get in touch with met at [email protected] I’m here to help you finish the course successfully.
“This course doesn’t just teach you MVVM. It goes well beyond that. It shows you how modern mobile applications are architected and the MVVM pattern is a key ingredient.”
Who Am I?
My name is Bart Jacobs and I’m the founder of Code Foundry, a mobile development company. I’ve been teaching since 2004 and I currently focus primarily on teaching Swift developers how to create robust, scalable applications for Apple’s platforms using Swift and the Cocoa frameworks.
I’m crazy about film music and I have a soft spot for tea and coffee. I’m currently weaned off coffee, but we’ll see how long that lasts.
“I don’t want to spend hours or days browsing the web to find what I’m looking for. I need a focused, actionable course that teaches me what I need to know. Mastering MVVM With Swift does exactly that.”
Module 1 What Is Model-View-ViewModel
- Is Model-View-Controller Dead
- How Does Model-View-ViewModel Work
Module 2 Cloudy
- Meet Cloudy
- What Is Wrong With Cloudy
Module 3 Creating and Working With View Models
- A Quick Recap
- Time to Create a View Model
- Put the View Model to Work
- Rinse and Repeat
- Using MVVM In the Settings View
Module 4 Protocols Love MVVM
- Adding Protocols to the Mix
- Making Table View Cells Autoconfigurable
- Supercharging View Models With Protocols
Module 5 Putting It to the Test
- Ready, Set, Test
- Writing Unit Tests for View Models
- Using Stubs for Better Tests
- A Few More Tests
Module 6 MVVM and Bindings
- Taking MVVM to the Next Level With Bindings
- What Are the Options
- DIY Bindings
- Why RxSwift
- Integrating RxSwift and RxCocoa
- Refactoring the View Model
- Refactoring the View Controller
- Protocol Oriented Programming and Dependency Injection
- Testing and Mocking
Where to Go From Here
You’re on a budget? No problem. Everything you need to know to learn and implement the Model-View-ViewModel pattern is included in the book. You also receive the source files for each chapter.
If the price is an issue, then I highly recommend choosing the book. The book also comes with a 30 day money back guarantee. I only want happy students.
The Video Course
The video course includes 29 high quality videos with each lesson zooming in on a key aspect of the Model-View-ViewModel pattern. A picture speaks a thousand words, but video goes one step further.
Join me as I walk you through the application we refactor. You have access to the source files of each lesson and, if you run into a problem, you have direct access to me in the comments or through email. I’m here to help you succeed.
The Complete Package
You want the complete experience. This package includes the book as well as the video course. You have direct access to me and the source files of the lessons of the video course.
The Coaching Package
This option is ideal if you want to learn the Model-View-ViewModel pattern without running into obstacles. This option includes the video course, the book, the source files, and two 30 minute sessions with myself.
These sessions are invaluable if you want to get unstuck or you want to get feedback on a problem you’re struggling with that relates to MVVM. These coding sessions are a surefire way to up your game as a developer.