insidegui / insidegui/CloudKitCodable

Why the cloudKitRecordType not a class property?

Đang mở
#16 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Swift
Star
395
Fork
31
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.