I'm not using firebase. I'm using a custom DataTransformer.
Specifying the type here fixed it:
override static var allowedTopLevelClasses: [AnyClass] {
return [NSArray.self, NSString.self]
}
More info added to the issue.
I added a do catch around modify subscription method, and see the error returned by CloudKit:
"User rejected a prompt to enter their iCloud account password"
Obviously, I'm not seeing any prompts.
Error is:
`do {
_ = try await database.modifySubscriptions(saving: [subscription], deleting:nil
self.setSubscriptionState(recordType: recordType)
} catch(let error) {
logger.debug("(error.localizedDescription)")
}
`
I remember reading something in one of Apple's recent release notes about adding support for AppStorage in ObservableObjects. I don't recall the exact build, but if someone has time to dig through release notes, it would be nice to have the reference. In other words, it should work in the latest SwiftUI release.
did you ever come up with a solution for this? I’m not as concerned about the size, and I’m not sure which system fields would be so large, but I do need to know the best solution as it does make sense performance wise.
thank You!
It appears that they released a build that fixes issues in Beta 6, but I can't get the BackyardGrid to display the BackyardBirdsPassOfferCard. I get a build error: Cannot find 'BackyardBirdsPassOfferCard' in scope
I added the following code to the BackyardGrid:
struct BackyardGrid: View {
@State private var searchText = ""
@Environment(\.passStatus) private var passStatus
@Environment(\.passStatusIsLoading) private var passStatusIsLoading
@Query var backyards: [Backyard]
var body: some View {
ScrollView {
if canPresentSubscriptionOfferCard { // Added this to try to show the subscription card.
BackyardBirdsPassOfferCard()
}
Any idea why? Thanks in advance.
I second that! I was hoping to find some amazing new sample code outlining usage like Back Yard Birds or similar with AssistantSchema, Model, Entity, Intent, and Enum usage, as well as EnumSchema, IntentSchema, MailIntent, MailEntity, PhotosIntent, PhotosEnum, SystemIntent plus integration with apps like yours truly.
...🕳️🐇
I'm not using firebase. I'm using a custom DataTransformer.
Specifying the type here fixed it:
override static var allowedTopLevelClasses: [AnyClass] {
return [NSArray.self, NSString.self]
}
More info added to the issue.
I added a do catch around modify subscription method, and see the error returned by CloudKit:
"User rejected a prompt to enter their iCloud account password"
Obviously, I'm not seeing any prompts.
Error is:
`do {
_ = try await database.modifySubscriptions(saving: [subscription], deleting:nil
self.setSubscriptionState(recordType: recordType)
} catch(let error) {
logger.debug("(error.localizedDescription)")
}
`
I remember reading something in one of Apple's recent release notes about adding support for AppStorage in ObservableObjects. I don't recall the exact build, but if someone has time to dig through release notes, it would be nice to have the reference. In other words, it should work in the latest SwiftUI release.
did you ever come up with a solution for this? I’m not as concerned about the size, and I’m not sure which system fields would be so large, but I do need to know the best solution as it does make sense performance wise.
thank You!
It appears that they released a build that fixes issues in Beta 6, but I can't get the BackyardGrid to display the BackyardBirdsPassOfferCard. I get a build error: Cannot find 'BackyardBirdsPassOfferCard' in scope
I added the following code to the BackyardGrid:
struct BackyardGrid: View {
@State private var searchText = ""
@Environment(\.passStatus) private var passStatus
@Environment(\.passStatusIsLoading) private var passStatusIsLoading
@Query var backyards: [Backyard]
var body: some View {
ScrollView {
if canPresentSubscriptionOfferCard { // Added this to try to show the subscription card.
BackyardBirdsPassOfferCard()
}
Any idea why? Thanks in advance.
I second that! I was hoping to find some amazing new sample code outlining usage like Back Yard Birds or similar with AssistantSchema, Model, Entity, Intent, and Enum usage, as well as EnumSchema, IntentSchema, MailIntent, MailEntity, PhotosIntent, PhotosEnum, SystemIntent plus integration with apps like yours truly.
...🕳️🐇