Post

Replies

Boosts

Views

Created

Why is SimulatorTrampoline taking TONS of memory?
This is a M4 iMac 32GB 2TB where over the last few months memory use has been crazy. The worst offender is SimulatorTrampoline. I just opened a default iOS app and ran it in a simulator. So this is as simple as it gets: there's 1 SF Symbol and "Hello, world!" text. iStatMenus shows SimulatorTrampoline at 10.7GB, Safari 5.2GB, Xcode at 3.2GB, and swap at 548MB meanwhile ActivityMonitor shows the top memory use of Ildb-rpc-server at 2.30GB, Xcode at 523.4MB Swap is 548MB is the only number that matches and the fact that Memory used is ~26GB total. Is this amount of memory use normal? Is iStat menu reporting something different than Activity monitor. This computer used to never swap. Any suggestions?
1
0
71
2w
Widget with Core Data guidance
I have an app that has a Core Data store for dates with descriptions that I'd like to present in a widget with countdown calculations. In the app I have a button that just equates an active calculation to the currently selected item in the database (using an EnvironmentObject). I gather I can't use this mechanism inside a widget, right? The user could put tons of items into the database - so I'm sure I don't want to have an editable widget allowing them to pick. I suppose I could create an intent and allow an independent entering from the app - but that seems rather user hostile since they've already entered it for the app - and I'm still trying to support iOS15 which doesn't support that. I did create an App Group and have the Core Data store available from within the widget, but I don't see how to allow the user to choose which date is active. I also want multiple widgets to be able to point to different dates. Any help would be appreciated. Thanks!
3
0
280
Sep ’25
Icon Composer questions...
This is the Icon Composer from Xcode 26.0 Beta 1 (not the really old one Xcode6? 😆 that I find when I search here) Is there a way to show the really cool 3D that they showed off during demos? Maybe all we get is which level is on top. Upon export it only seems to be able to do 2x? - is there some way to get it to take 1x? Every time I change it - it jumps back to 2x and iOS wants 1x... maybe a feedback. Also Xcode seems to want 3 icons - but there are 6 iOS ones exported. How do I get the other 3 in there? It does seem pretty easy to import PNG's from Sketch and order them and move pieces around. I guess you can save individual lighting for each icon mode.
5
0
467
Jun ’25
dual predicate search using CoreData
I have a very simple CoreData model that has 1 entity and 2 attributes. This code works fine: .onChange(of: searchText) { _, text in evnts.nsPredicate = text.isEmpty ? nil :NSPredicate(format: "eventName CONTAINS %@ " , text ) but I'd like to also search with the same text string for my second attribute (which is a Date). I believe an OR is appropriate for two conditions (find either one). See attempted code below: evnts.nsPredicate = text.isEmpty ? nil : NSPredicate(format: "(eventName CONTAINS %@) OR (dueDate CONTAINS %i) " , text ) This crashes immediately %@ does the same. Is there a way to accomplish this? How is SwiftUI not an option below?
6
0
350
Mar ’25
Let's talk about SwiftUI DefaultDatePickers
Is there a way to add the day of the week to the wheel picker that pops up inside the Default calendar picker? How about an optional way to type a date in instead of lots of scrolling? DatePicker("Enter a date", selection: $date1, displayedComponents: .date) .datePickerStyle(DefaultDatePickerStyle()) This works OK, but it seems slow when entering a date to need to scroll and then tap the calendar again to fix the day of the week. Maybe a custom entering screen is the best path? It's frustrating that SwiftUI doesn't offer more options. I see that Contacts goes right to the Wheel style, but Calendar uses this pop up calendar (Default) style) Maybe someone thinks that 3 scroll wheels are too much?
Topic: UI Frameworks SubTopic: SwiftUI
0
0
373
Jun ’24
landscape support
I heard someone say recently that not supporting landscape on iPhone could be an accessibility problem for some folks. Right now I've got an SwiftUI app were lots of things break when I go to landscape mode. Is there a good resource to learn how to animate layouts around to support landscape when there's no way it will fit with the default twist?
Topic: Design SubTopic: General Tags:
1
1
640
Jun ’24