insidegui / insidegui/CloudKitCodable

Why the cloudKitRecordType not a class property?

未关闭
#16 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Swift
星标
395
派生
31
PR 合并指标
30 天内没有已合并 PR

描述

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?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。