Skip to content

Basic concept of using SwiftUI with Core Data via FetchRequest property wrapper or NSFetchedResultsController

Notifications You must be signed in to change notification settings

mikechan1234/SwiftUI-Using-Core-Data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

SwiftUI-Using-Core-Data

Basic concept of using SwiftUI with Core Data via FetchRequest property wrapper or NSFetchedResultsController

  • Developed in Xcode 11
  • This is a simple SwiftUI application that shows a list of entries to display whether the user went to the gym or not
  • The app displays 2 methods of fetching the entries from Core Data and displaying it on List
    • FetchRequest property wrapper which requires managedObjectContext as an environment variable set within the view
    • NSFetchedResultsController with a CurrentValueSubject
  • Presents a modal view via .sheet view modifier and using presentationModel @Environment variable to dismiss the view

About

Basic concept of using SwiftUI with Core Data via FetchRequest property wrapper or NSFetchedResultsController

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages