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.
...🕳️🐇
Post
Replies
Boosts
Views
Activity
This makes me grumpy.
Same issue here, but still looking for a solution.
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.
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!
Disregard, that's minimum target.
Are you by any chance setting breakpoints inside of code that's in a framework? I just read somewhere that this is a known issue.
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.
Huge improvement in iOS 15 Beta. Thank you, @Apple.
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)")
}
`
Tried signing out of iCloud and signing back in, syncing, but it still fails. This is something else.
Thank you for providing a workaround for now. This at least cleans up the warnings.
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]
}
I'm also facing this issue; although, I am using CoreData.
Same issue here, iOS 14.5 Beta 7, SwiftUI app.