We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a1d135 commit 1560381Copy full SHA for 1560381
CountriesSwiftUI/Persistence/CoreDataHelpers.swift
@@ -16,7 +16,7 @@ protocol ManagedEntity: NSFetchRequestResult { }
16
extension ManagedEntity where Self: NSManagedObject {
17
18
static var entityName: String {
19
- let nameMO = String(describing: Self.self)
+ let nameMO = String(describing: self)
20
let suffixIndex = nameMO.index(nameMO.endIndex, offsetBy: -2)
21
return String(nameMO[..<suffixIndex])
22
}
0 commit comments