insidegui / insidegui/CloudKitCodable

Why the cloudKitRecordType not a class property?

Open
#16 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
395
Forks
31
PR merge metrics
No merged PRs in 30d

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.