Created
December 12, 2021 14:01
-
-
Save michzio/5a232e2571049c51430c240bb2266280 to your computer and use it in GitHub Desktop.
SwiftUI MVVM architecture - Entity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@objc(WordsetCategory) | |
public class WordsetCategory: NSManagedObject { } | |
extension WordsetCategory { | |
@nonobjc public class func fetchRequest() -> NSFetchRequest<WordsetCategory> { | |
return NSFetchRequest<WordsetCategory>(entityName: "WordsetCategory") | |
} | |
@NSManaged public var categoryId: String? | |
@NSManaged public var foreignName: String? | |
@NSManaged public var nativeName: String? | |
@NSManaged public var wordsets: NSSet? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment