Chapter 6. Designing MVVM cross-platform apps

 

This chapter covers

  • Preparing for building cross-platform apps by considering the differences between iOS and Android
  • Designing the flows a user will take in an app, including which layer and which thread to use
  • Creating the solution for an app
  • Configuring the properties for your app, including SDK versions and linker settings

In the first part of this book we looked at the foundations of an MVVM-based cross-platform mobile app. We looked at what the different layers in MVVM are all about and how to structure your code inside them. We also looked at how threads work in mobile apps and how you can keep your apps responsive when performing long-running actions. Now it’s time to think about how you can start building a cross-platform mobile app.

As developers, we’re often tempted to start a new app by firing up our IDE and clicking File > New Project. But a little planning goes a long way, so before we start creating any code, let’s first think about what we’re building and then think about how to build it. Then we can create a new solution and look at how it differs from the kinds of solutions most C# developers are used to.

6.1. Introduction to designing a cross-platform app

6.2. Designing the UI and user flows

6.3. Architecting the app

6.4. Creating the solutions

6.5. Application properties

6.6. SDK versions

6.7. Linking

Summary