Relative Content

Tag Archive for swiftuicloudkitswiftdata

Child view not rendering when adding @Query macro – Infinite loop

For some reason when I add an @Query macro to my child view it fails to render. If I simplify my child view by just adding a plain text field while still leaving the @Query macro it still won’t render. However, if I comment out the @Query macro in the child view then it renders, why?

Child view not rendering when adding @Query macro in child view, why?

For some reason when I add an @Query macro to my child view it fails to render. If I simplify my child view by just adding a plain text field while still leaving the @Query macro it still won’t render. However, if I comment out the @Query macro in the child view then it renders, why?

Child view not rendering when adding @Query macro in child view, why?

For some reason when I add an @Query macro to my child view it fails to render. If I simplify my child view by just adding a plain text field while still leaving the @Query macro it still won’t render. However, if I comment out the @Query macro in the child view then it renders, why?

Child view not rendering when adding @Query macro in child view, why?

For some reason when I add an @Query macro to my child view it fails to render. If I simplify my child view by just adding a plain text field while still leaving the @Query macro it still won’t render. However, if I comment out the @Query macro in the child view then it renders, why?

How to pass computed property as binding?

I have been trying to figure out how to pass my computed property from a foreach loop to another view as binding and I can’t seem to figure it out. I’m using a computed property for the foreach loop b/c it is used for a search bar. Let me start by showing my swift data models first.

SwiftData @Model Macro – Store Media as Type Data?

I have been working on an app and using the SwiftData Model with the @Model macro. I noticed a while back that it doesn’t support the CKAsset data type b/c it does not conform to the PersistentModel protocol. I’m also assuming that’s b/c it does not conform to the Codable protocol.