In my iPad app, I have a view that is displayed in .fullScreenCover. And while it's a pretty basic view (a few stacks, some SF Symbols, and long text), the scrolling is sometimes laggy. Like I can see the stutter on my iPad Pro.
Since it's WWDC, maybe someone can point me to a tutorial, or the tool, or the steps I can take to tackle this laggy scrolling?
Or maybe .fullScreenCovers aren't supposed to be long and be scrolled?
Thanks in advance!
Post
Replies
Boosts
Views
Activity
When using PencilKit and the default PKCanvasView, we get a pop-up menu with options like 'Select All | Insert Space' when we long tap on the canvas.
What is the proper way to remove this menu completely?
Thank you for your help.
For a bit of context, I store binary files of about 50KB in my Core Data. I noticed that enabling the "Allows External Storage" option doesn't seem to make any difference.
Additionally, how does this setting work with CloudKit when using NSPersistentCloudKitContainer?
Does this setting affect how the data is loaded into memory when accessed in Core Data in the app?
Thank you very much!
How can I keep the fetchLimit constant even when new data is inserted?
To replicate this, you can create a new Project in Xcode and check "Use Core Data". I use this code to apply fetchLimit:
struct MyView: View {
@FetchRequest private var items: FetchedResults<Item>
init() {
let request: NSFetchRequest<Item> = Item.fetchRequest()
request.fetchLimit = 3
_items = FetchRequest(fetchRequest: request)
}
This code works. For example I have 10 Items and when I open the app - only 3 are displayed! But when I add a new Item on the fly - @FetchRequest just adds it to the View and now it displays 4 Items!?
How can I make @FetchRequest keep updating the View reactively, but respect the fetchLimit to always show the latest 3 Items only?