Post

Replies

Boosts

Views

Activity

Live Activity Timeline
I am working on a live activity showing realtime NYC subway arrival countdowns at a station. As trains arrive I want to remove them from the live activity so that only inbound trains are displayed. As I understand it this will require a broadcast push notification every time a train arrives, but this is incredibly inefficient (and will likely be throttled) as trains can arrive many times per minute at a busy station. MTA data includes approximately 90 minutes of train arrivals. Is there no way to create a live activity timeline the way widgets can update at planned intervals? The only viable option I've found is keeping the entire app alive in the background to update the live activity when required by registering for background location updates, but this seems like an unfriendly solution.
13
0
576
22h
Dynamic Type and Widget Layout
I have a ToDo list app with an accompanying widget that displays upcoming items with an 'n more...' label at the bottom if they don't all fit. At the moment the number of rows is hard-coded based on widget family (4 for small and medium, 11 for large). How do I make the row count and 'more' text adjust for dynamic type sizes? Small and medium fonts should display 4 rows while large will only fit 3 before content is pushed off the bottom.
1
0
1.5k
Jul ’23
NSOperation Quality of Service Promotion
According to the archived Energy Efficiency Guide for iOS Apps I should be able to change an NSOperationQueue's qualityOfService and promote its operations to the new qualityOfService. This does not seem to be true anymore but I can't find any current documentation on how to promote a queued NSOperation. Does anyone know how to achieve QoS promotion of a queued operation? It seems like whatever the operation's resolved QoS is at the time it is added to the queue is the QoS used when the operation is run regardless of changes made to the queue or the operation before it runs.
0
0
766
Feb ’22
Live Activity Timeline
I am working on a live activity showing realtime NYC subway arrival countdowns at a station. As trains arrive I want to remove them from the live activity so that only inbound trains are displayed. As I understand it this will require a broadcast push notification every time a train arrives, but this is incredibly inefficient (and will likely be throttled) as trains can arrive many times per minute at a busy station. MTA data includes approximately 90 minutes of train arrivals. Is there no way to create a live activity timeline the way widgets can update at planned intervals? The only viable option I've found is keeping the entire app alive in the background to update the live activity when required by registering for background location updates, but this seems like an unfriendly solution.
Replies
13
Boosts
0
Views
576
Activity
22h
Make GeneratedAssetSymbols.h Public
Is it possible to make generated asset symbols (ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOLS and/or ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS) public so that they can be used by targets that import the framework defining them?
Replies
6
Boosts
12
Views
2.7k
Activity
Jan ’24
Dynamic Type and Widget Layout
I have a ToDo list app with an accompanying widget that displays upcoming items with an 'n more...' label at the bottom if they don't all fit. At the moment the number of rows is hard-coded based on widget family (4 for small and medium, 11 for large). How do I make the row count and 'more' text adjust for dynamic type sizes? Small and medium fonts should display 4 rows while large will only fit 3 before content is pushed off the bottom.
Replies
1
Boosts
0
Views
1.5k
Activity
Jul ’23
NSOperation Quality of Service Promotion
According to the archived Energy Efficiency Guide for iOS Apps I should be able to change an NSOperationQueue's qualityOfService and promote its operations to the new qualityOfService. This does not seem to be true anymore but I can't find any current documentation on how to promote a queued NSOperation. Does anyone know how to achieve QoS promotion of a queued operation? It seems like whatever the operation's resolved QoS is at the time it is added to the queue is the QoS used when the operation is run regardless of changes made to the queue or the operation before it runs.
Replies
0
Boosts
0
Views
766
Activity
Feb ’22