Skip to content

Learn new programming concepts and more new SwiftUI 2 features

Notifications You must be signed in to change notification settings

trantrungtin/SwiftUI-App-Devote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swiftui-version swift-version license Platform

SwiftUI 2 - Devote


Logo

In this SwiftUI tutorial, we will develop a task manager iOS application with Core Data integration. This is not a project with a boring user interface. This iOS and iPadOS application provides a personal touch and feel.

Learn how to integrate Core Data with SwiftUI

Apple's Core Data framework helps developers to manage and interact with data on a persistent store. It works on iPhone, iPad, Mac computer, or even Apple Watch.

When we start from a brand new project, the easiest way to use the Core Data framework is by enabling the Core Data option on the setup screen. By doing that Xcode will generate all the required file templates with code and the managed object model for us.

This Xcode 12's new Core Data template comes with the SwiftUI app life cycle integration and the required Core Data Model. This is why it is worth knowing how to get started with this new template and how to create a working application.

Topics are covered:

  • How to integrate Core Data with the SwiftUI App Life Cycle
  • How to get familiar with Xcode's new Core Data template
  • How to create a basic Widget for iOS and iPadOS devices
  • How to develop a Widget sets with different sizes (small, medium, large)
  • How to set up the Preview to test the different Widget sizes on the Canvas
  • How to Create, Read, Update and Delete a database item (CRUD method)
  • How to show SwiftUI views conditionally
  • How to switch from Light mode to Dark mode the app's appearance
  • How to store the app's appearance using App Storage
  • How to create a visual effect with SwiftUI (blur, overlay, display mode)
  • How to add the required assets for the Widget extension
  • How to develop a custom Toggle style and make a checkbox
  • How to improve the User Experience with sound effects
  • Practice how to use Apple's Feedback Generator and implement haptics

Demo

App icon

Core Data application

iOS 14 Widgets

Text field and custom visual effect

App appearance toggle (Light and Dark mode)

Launch Screen

Meta

Tin Tran – Linkedin[email protected]

About

Learn new programming concepts and more new SwiftUI 2 features

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages