insidegui / insidegui/CloudKitCodable

Why the cloudKitRecordType not a class property?

Ouverte
#16 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Swift
Étoiles
395
Forks
31
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

I think in the `CloudKitRecordRepresentable` protocol, the `cloudKitRecordType` should be a `static var ` property.
here is the code sample.

```
func fetchRecords(type: CKRecord.RecordType) async throws -> ([CKRecord], CKQueryOperation.Cursor?)
```
If I want to fetch a record list, I need pass the recordType to the function, but I can't get the RecordType from the CustomCloudKitCodable class, I have to initialize a instance ,then pass the `instance.cloudKitRecordType` to the function.
Why don't let the `cloudKitRecordType` to be a static var property?

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.