Book Image

SwiftUI Projects

By : Craig Clayton
Book Image

SwiftUI Projects

By: Craig Clayton

Overview of this book

Released by Apple during WWDC 2019, SwiftUI provides an innovative and exceptionally simple way to build user interfaces for all Apple platforms with the power of Swift. This practical guide involves six real-world projects built from scratch, with two projects each for iPhone, iPad, and watchOS, built using Swift programming and Xcode. Starting with the basics of SwiftUI, you’ll gradually delve into building these projects. You’ll learn the fundamental concepts of SwiftUI by working with views, layouts, and dynamic types. This SwiftUI book will also help you get hands-on with declarative programming for building apps that can run on multiple platforms. Throughout the book, you’ll work on a chart app (watchOS), NBA draft app (watchOS), financial app (iPhone), Tesla form app (iPhone), sports news app (iPad), and shoe point-of-sale system (iPad), which will enable you to understand the core elements of a SwiftUI project. By the end of the book, you’ll have built fully functional projects for multiple platforms and gained the knowledge required to become a professional SwiftUI developer.
Table of Contents (13 chapters)

Chapter 7: Financial App – Core Data

In the last chapter, we set up our design for our financial app. In this chapter, we are going to work with the data side. We will use Core Data to store our data. Core Data is pretty popular and is one of those hot topics among the iOS community. On the one hand, you have those who hate it and haven't used it for years, and then you have those who have used it since iOS 10 and can see what Apple has done to it over the course of the last few years. Core Data has come a long way from what it was pre-iOS 10. I do not use Core Data in my everyday work, but I find it not as bad as it used to be. I know that if I need an easy system that I want to get up and running, I will use Core Data without hesitation.

In this chapter, we will be covering the following topics:

  • What is Core Data?
  • Integrating Core Data with SwiftUI
  • Displaying Core Data in a list

We are going to cover a lot of Core Data basics in this chapter...