Post

Replies

Boosts

Views

Activity

Reply to App Name vs Display Name
The app name must be unique, but the display name (the text under the icon) has no such constraint. We can both make apps for keeping track of twinkies, which we would have to uniquely name in the app store (******* Tracker 1000 and ******* Tracker Pro), but we could both use ******* Tracker as the display name of our respective apps.
Oct ’24
Reply to CPU use increases over time with simple animation
For reference, the onRecieve modifier is executing every 3 seconds when the timer publishing interval is set to 3 seconds: .onReceive(timer) { _ in print("got here: \(Date())") withAnimation(nucleusAnimation) { print("animation got here: \(Date())") nucleusRadius = Double.random(in: minSize...maxSize) } } got here: 2024-10-27 14:05:58 +0000 animation got here: 2024-10-27 14:05:58 +0000 got here: 2024-10-27 14:06:01 +0000 animation got here: 2024-10-27 14:06:01 +0000 got here: 2024-10-27 14:06:04 +0000 animation got here: 2024-10-27 14:06:04 +0000 got here: 2024-10-27 14:06:07 +0000 animation got here: 2024-10-27 14:06:07 +0000 got here: 2024-10-27 14:06:10 +0000 animation got here: 2024-10-27 14:06:10 +0000 In addition, changing the timer instantiaton as follows, which appears to be more correct, did not change the CPU use: .onReceive(Timer.publish(every: 1, on: .main, in: .common).autoconnect()) { output in withAnimation(nucleusAnimation) { nucleusRadius = Double.random(in: minSize...maxSize) } }
3w