Post

Replies

Boosts

Views

Activity

Reply to SwiftUI : NavigationStack in new iOS 18 TabView pushes twice when path in parameter
I am experiencing this issue, although only when NavigationLinks at tapped after a list has been filtered using .searchable. That is, rows containing a NavigationLink that normally will only lead to one push on the stack will modify the path twice when that row is tapped after filtering the list with a search term using a .searchable search box. This remains present in both iOS 18 beta 7 and in iOS 18.1 beta 2.
Aug ’24
Reply to icloud-container-environment with NSPersistentCloudKitContainer
Do not be as dim witted as me! com.apple.developer.icloud-container-environment must be set in your .entitlements file, not your app's info.plist file! Additionally, if you have separate .entitlements files for your debug and release builds, be sure to set this value in the debug one. Note that TestFlight builds and releases in the store are unaffected by this entitlement—they will always use the production environment regardless of whether this entitlement is set and regardless of what it is set to if it is set.
Jun ’22
Reply to What is the best way to fetch multiple Core Data entity types for presentation together in a collection?
An addendum. The two use cases outlined above are: to be able to return entities of any of the types that have properties that meet a particular search term, and to display the other entities that are in relationship with a selected entity. In the latter case, one particular thing I want to do is to present a chronological timeline of the entity relationships to other entities that have been added or changed over time, e.g., this customer is now in a relationship with this business, or with this product, as a single unified timeline. What I'm starting to think is that the way to do this is perhaps to create an intermediate entity of some kind, e.g., a timelineEvent entity, which is created at the point of creating a relationship between two of my existing entities. These lightweight entities would not be used to manage the relationship between the entities, but would be used to provide a history about those events. Thus, displaying a timeline of those events could be via an NSFetchedResultsController that is fetching only a single entity type, timelineEvent, and then from that creating one of a range of collection view items depending on the type of entity the relationship was with. Is this a good approach to the problem I'm outlining? In other cases, it likely makes sense for my use case to just continue to fetch each of the entities via the relationship, on a per-entity-type basis, and then display those as individual collections of entities, rather than trying to intermix them. But I am most interested in any feedback or suggestions. :)
Jun ’20