Swift Dev Notes
Ctrlk
SedatOnat.devAffiliated with SedatOnat.com
  • 👋Welcome to SedatOnat.dev
  • Learning Path
    • What to Learn?
    • How to Learn?
    • Useful Docs
  • Before Starting
    • Xcode
    • Version Control
    • Swift
    • Naming
  • DATABASES
    • Apple Database
      • CloudKit
      • CoreData
        • NSError
        • NSFetchRequest
        • NSManagedObject
        • NSMergePolicy
        • NSPredicate
        • FetchRequest
        • Relationships
        • .hasChanges
      • KeyChain
      • UserDefaults
    • 3rd Party Databases
    • Database Comparison
  • Design Patterns
    • Alternatives
    • Comparison
  • Model
    • Accessibility
    • Assets
    • Error Debugging
    • File Management
  • CODES
    • Pseudo Code
    • Frameworks
    • APIs
    • Packages
    • Dependency Managers
    • Libraries
    • Main Pillars (Protocol, Class, Struct, etc.)
    • Data Collectors
    • Properties / Data Containers
    • Property Wrappers
    • Optionals
    • Data Types
    • Operators
    • Conditionals
    • Loops
    • Physical Properties
    • Other Properties
    • Code Pool
  • View
    • Apple HIG
    • Design
    • Image and Graphic
    • Page Elements
    • View Modifiers
    • Reporting
    • Others
  • Solutions
    • Case Solutions
    • Sample Project Pool
  • Testing
    • Debugging
    • Testing CheckList
    • Unit Test
  • Documentation
    • GitBook
    • MarkDown
  • Deploying and Publishing
    • Checklist
    • Deployment Processes
    • Publishing Processes
    • ASO - App Store Optimization
  • Kaizen
    • CI-CD
Powered by GitBook
On this page
  • Overview
  • Defining Constraints
  • Source
  • Videos
  • Articles / Documents
  • See also

Was this helpful?

  1. DATABASES
  2. Apple Database

CoreData

#coredata #datamodel

Overview

See also Data Types

Defining Constraints

If you want some fileds are to be unique, you should define them in Constraints section from "View / Inspectors / Data Model" menu.

Hacking with Swift / 100 Days / Day-57 - Ensuring Core Data objects are unique using constraints

Source

Videos

Hacking with Swift / 100 Days / Day-53 - How to combine Core Data and SwiftUI
Hacking with Swift / 100 Days / Day-54 - Creating books with Core Data
Azam Sharp / Saving Transformable Types Using Core Data
Beyond Ones and Zeros / SwiftUI 2.0: Core Data - How To Use Core Data From Scratch (2020)

Articles / Documents

  • https://developer.apple.com/documentation/coredata

  • https://www.youtube.com/watch?v=O7u9nYWjvKk

  • https://azamsharp.com/2022/10/11/embracing-core-data-in-swiftui.html

  • Hacking with Swift / How to configure Core Data to work with SwiftUI

  • Hacking with Swift / How to access a Core Data managed object context from a SwiftUI view

See also

PreviousCloudKitNextNSError

Last updated 2 years ago

Was this helpful?