Post

Replies

Boosts

Views

Activity

Reply to Upload to the store Error
From what you have posted, you have: App bundle id: • com.legacylouisvillellc.legacylouisville ...and extension id: • com.legacylouisvillellc.legacylouisville But these two bundle id's must be different. The extension's bundle id should use the app's bundle id as a prefix, so... App bundle id: • com.legacylouisvillellc.legacylouisville ...and extension id: • com.legacylouisvillellc.legacylouisville.myExtension (Whatever myExtension should be called)
Aug ’21
Reply to List of SwiftUI very lag when scroll with realtime data (item of array quick change)
On tapping "Fake data realtime update": you start an infinite loop of updataData() which calls itself (100 times a second) For me, this pins CPU activity at 100% Considering that, I found your code surprisingly responsive, I expected it to grind to a halt! Updates may be arriving rapidly, but does your UI really need to update 100 times per second? I think in a real app, a more realistic strategy would be to gather a batch of updates, and update the UI once, with the entire batch. And of course, non-UI work need not be on the main thread.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’21
Reply to Can't read 'data' object returned from URLRequest
You are receiving data, and the "let data = data" command is okay. So presumably the failure occurs on: if let decodedResponse = try? JSONDecoder().decode(FDCResponse.self, from: data) { You don't include a definition of FDCResponse, so I can't test that. However, you can try what I did: if let data = data { if let dataString = String(data: data, encoding: .utf8) { print("got dataString: \n\(dataString)") } // ... Which prints the incoming json, which looks like this: {"totalHits":5,"currentPage":1,"totalPages":1,"pageList":[1],"foodSearchCriteria":{"dataType":["Foundation"],"query":"apple fuji","generalSearchInput":"apple fuji","pageNumber":1,"numberOfResultsPerPage":50, ... So you can compare that json with your FDCResponse, to see where an error might arise.
Topic: App & System Services SubTopic: General Tags:
Sep ’21
Reply to Unity Warnings, publish app?
Your source code is not uploaded to the App Store, so Apple will not be looking at those warnings. There are different views on it: Some people treat warnings the same as errors - they must be fixed. Other people take a more relaxed view - some warnings are trivial, and cause no harm. My personal approach is to allow some warnings during development (e.g. when using TestFlight), but I like to clear them all before submitting to the App Store.
Sep ’21
Reply to stopDeviceMotionUpdates doesn't stop motion updates
If updates aren't stopping, that suggests something like (one of): • You aren't stopping them • They are immediately restarting • They are starting multiple times You need to call stopDeviceMotionUpdates() Which you do, in stopQueuedUpdates() So are you calling stopQueuedUpdates() correctly (you don't show the code for this)? Do you have only one WatchMotionManager?
Sep ’21