Posts

Post marked as solved
2 Replies
264 Views
I'm trying to use .scrollEdgeAppearance to effect a similar style to that used in the Reminders app for the 'new reminder' popover on iOS. Here, we can see that when we're at the 'scroll edge' the navigation bar and shadow are transparent. And when the user scrolls they go back to the regular opaque/blur effect style. They don't use large titles. However, when trying to do something similar using .scrollEdgeAppearance I can't seem to replicate the effect. This is strange as it seems to be used quite liberally by Apple. e.g. in the aforementioned Reminders app, and also when a search controller has been added to a view controller's navigation item. Do we really need to scrollViewDidScroll(_:) this?
Posted
by FlatMap.
Last updated
.
Post not yet marked as solved
0 Replies
286 Views
I'm using Core Data and CloudKit together, and so far everything looks great. But one thing that I haven't been able to find much literature on is the interaction between NSPersistentCloudKitContainer and Persistent History Tracking. My assumption is that NSPersistentCloudKitContainer leans on Persistent History Tracking to execute its responsibilities. So if we're using Persistent History Tracking elsewhere – maybe to update an app extension using a process similar to the one outlined at https://www.avanderlee.com/swift/persistent-history-tracking-core-data/ – there's a risk of interrupting that process. Especially with regards to executing a NSPersistentHistoryChangeRequest.deleteHistory(before:) request. Would this run the risk of deleting history that NSPersistentCloudKitContainer requires to perform its roles? Is there a way to synchronise these various responsibilities?
Posted
by FlatMap.
Last updated
.