Mastering MVVM with Swift: Updated for Xcode 9 and Swift 4

Mastering MVVM with Swift: Updated for Xcode 9 and Swift 4
Author :
Publisher :
Total Pages : 175
Release :
ISBN-10 : 1549935984
ISBN-13 : 9781549935985
Rating : 4/5 (84 Downloads)

Book Synopsis Mastering MVVM with Swift: Updated for Xcode 9 and Swift 4 by : Bart Bart Jacobs

Download or read book Mastering MVVM with Swift: Updated for Xcode 9 and Swift 4 written by Bart Bart Jacobs and published by . This book was released on 2017-07-17 with total page 175 pages. Available in PDF, EPUB and Kindle. Book excerpt: "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 TrulyDespite its widespread, the Model-View-Controller pattern just doesn't cut it for most Swift projects. Take control of your Swift projects with the Model-View-ViewModel pattern.Massive View Controller SyndromeFiring 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 MVCIf 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?Take Control of Your Project With MVVMIn 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 9 and Swift 4In Mastering MVVM With Swift, 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 9 and Swift 4.Battling Massive View Controller SyndromeAre 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.


Mastering MVVM with Swift: Updated for Xcode 9 and Swift 4 Related Books

Mastering MVVM with Swift: Updated for Xcode 9 and Swift 4
Language: en
Pages: 175
Authors: Bart Bart Jacobs
Categories:
Type: BOOK - Published: 2017-07-17 - Publisher:

DOWNLOAD EBOOK

"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 TrulyDespite its widespread,
Mastering iOS 14 Programming
Language: en
Pages: 559
Authors: Mario Eguiluz Alebicto
Categories: Computers
Type: BOOK - Published: 2021-03-19 - Publisher: Packt Publishing Ltd

DOWNLOAD EBOOK

Become a professional iOS developer with the most in-depth and advanced guide to Swift 5.3, Xcode 12.4, ARKit 4, Core ML, and iOS 14’s new features Key Featur
Mastering Swift 5
Language: en
Pages: 358
Authors: Jon Hoffman
Categories: Computers
Type: BOOK - Published: 2019-04-30 - Publisher: Packt Publishing Ltd

DOWNLOAD EBOOK

Harness the power of the latest edition with this in-depth and comprehensive guide to the Swift language Key FeaturesFifth edition of this bestselling book, imp
Learn Swift by Building Applications
Language: en
Pages: 356
Authors: Emil Atanasov
Categories: Computers
Type: BOOK - Published: 2018-05-25 - Publisher: Packt Publishing Ltd

DOWNLOAD EBOOK

Start building your very own mobile apps with this comprehensive introduction to Swift and object-oriented programming Key Features A complete beginner's guide
Learning Core Data for iOS with Swift
Language: en
Pages: 706
Authors: Tim Roadley
Categories: Computers
Type: BOOK - Published: 2015-12-07 - Publisher: Addison-Wesley Professional

DOWNLOAD EBOOK

Get Started Fast with Core Data App Development Using iOS 9, Swift, and Xcode 7 Core Data is a remarkably mature, stable, and fast platform for data access, and