Search results for

A Summary of the WWDC25 Group Lab

10,092 results found

Post

Replies

Boosts

Views

Activity

iOS 18 Subviews and Environment values
Hello 👋 I played with the iOS 18 Group(subviews:) APIs these days and I guess I'm missing a point. Environment values seems to not being passed to subviews when set within the Group(subviews:) API. See the following code: Is it intended to be that way ? How to propagate different values to different subviews in this case ? I heard of ContainerValues API but it seems to be a way to provide value at root level to access it during subview iteration. What I'm looking for is insert/propagate values to each subview during subview iteration. PS: This works but I have lost subview context this way (I'm out of the group). Thanks in advance for anyone answering this!
3
0
82
Aug ’25
Reply to iOS 18 Subviews and Environment values
I guess this is one way to do it. TLDR; Create a resolver view to wrap your content views. Use an environment closure to pullback values from it. Re-distribute these values using the containerValue API to propagate value to subviews. Use .onChange(of: subview.containerValues.foo)API on subview to be notified of changes. Let's say we want to design an API like that: // MARK: Client Stepper { StepView { Text(Becoming spartan) } content: { FooView() } StepView { Text(Dying in glory) } content: { BarView() } } where FooView, BarView could access to a complete closure through environment to notify it finishes (same way as @Environment(.dismiss)): struct FooView: View { @Environment(.isComplete) private var isComplete var body: some View { VStack { Text(This is the part where you become a spartan) HStack(alignment: .bottom) { Rectangle() .fill(Color.blue.gradient) .frame(width: 50, height: 25) Rectangle() .fill(Color.cyan.gradient) .frame(width: 50, height: 10) Rectangle() .fill(Color.pink.gradient) .frame(width: 5
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’25
Reply to Crash when assigning NSImage to `@objc dynamic var` property
I don't understand. Aren't all these tools you mention (Zombies instrument, ASan, Main Thread Checker etc.) meant to be run in Xcode or Instruments? Or are you saying I should enable some compiler flag in my production build? They're intended to run in your development build. Let me jump back to what you're saying here: since the crash reports are downloaded by Xcode from other users and I cannot reproduce it myself... What you're saying here is testing in Xcode won't help because I can't reproduce the issue. The problem with that statement is that it misunderstands how the tools above actually work. They don't just provide better diagnostic data about a crash that would otherwise occur, they actually CREATE crashes that would otherwise NOT occur. Jumping back to my description here: However, what the Zombies instrument actually does is modify the dealloc method so that freeing an object doesn't ACTUALLY free that object, but instead replaces it with an intentionally invalid object (the zombie). That means th
Topic: UI Frameworks SubTopic: AppKit Tags:
Aug ’25
5G CBRS Private Network Support
I am trying to connect an iPad (iOS Beta 17.0 21A5268h) to our lab private 5G SA (Standalone) network. The network is in US and uses CBRS. Other (Android) phones and 5G devices are successfully connected to it. Per the article below, we have tried CBRS PLMN (315-010) and Test PLMN (999-99) without any success. https://support.apple.com/en-ca/guide/deployment/depac6747317/web Basic issues seems to be that the 5G Standalone toggle on Cellular Data Options menu is greyed out with a message that says Your current SIM does not support 5G Standalone. Contact your carrier for more information. Trying to choose our own network doesn't list our network (but lists other public 5G networks). Same SIMs work on some Android phones and other 5G devices to connect to this network. If you have successfully connected iPhone or iPad with 5G SA private network (not public carriers), some details/hints will be appreciated.
6
0
1.8k
Aug ’23
subscriptions before submitting a review
We distribute apps that offer auto-renewing subscriptions. In order to test a new service, we would like to create a new subscription group and subscription product (hereinafter referred to as “test subscription”) for this app. If the “In-app purchase statuses” of the test subscription is “Ready to Submit” is the following behavior correct? ・General end users cannot purchase the test subscription. ・Users with SANDBOX Apple accounts can purchase the test subscription.
1
0
48
Aug ’25
Unable to download sales report
Hello, I’m encountering a consistent HTTP 400 – Bad Request error when attempting to retrieve daily sales reports via the App Store Connect API. The request format follows the official documentation: https://developer.apple.com/documentation/appstoreconnectapi/get-v1-salesreports. Here is an example of the request I’m making: curl --location --globoff ' https://api.appstoreconnect.apple.com/v1/salesReports?filter[frequency]=DAILY&filter[vendorNumber]=&filter[reportDate]=2025-08-11&filter[reportType]=SALES&filter[reportSubType]=SUMMARY' --header 'Authorization: Bearer ' This request worked without issues until August 6, 2025 (Obviously using the previous day date), but from August 7 onward it returns a 400 error. Could you please confirm: Whether there have been any changes to the required query parameters (e.g., filter[version]). If there are any known issues with the SALES / SUMMARY / DAILY endpoint. Aside from the images attached, our buffer error also shows: new Uint8Arr
2
0
167
Aug ’25
Complete data loss after iPhone sync, need engineering help
I am experiencing catastrophic data loss affecting years of documents after a routine iPhone-to-iPhone iCloud synchronization. Standard Apple Support has been unable to resolve this issue, and I urgently need engineering-level assistance. INCIDENT SUMMARY: Date: August 9, 2025 Action: Synced iCloud from iPhone 16 to iPhone 12 mini Result: ALL files in iCloud Drive on Mac disappeared Data lost: Multiple years of documents including critical PDF files Support Case #: 102658156364 TECHNICAL DETAILS: Mac: MacBook Pro running macOS Sonoma 14.6.1 Source: iPhone 16 Destination: iPhone 12 mini iCloud account: info@birth2death. com WHAT HAPPENED: Had fully populated iCloud Drive on Mac and iPhone 16 Signed into iCloud on iPhone 12 mini to sync data After sync completion, Mac's iCloud Drive became completely empty Desktop and Documents folders show in structure but contain no files iCloud.com shows empty folders Recently Deleted in iCloud.com is also empty ATTEMPTED RECOVERY: Checked ~/Library/Mobile Documents
1
0
74
Aug ’25
Sandboxed macOS app with system extension, app groups, getting data permission issue
I'm trying to distribute a sandboxed macOS app with a PacketTunnelProvider (system extension) via direct distribution (outside of AppStore). The app and the extension both use the same app group, using the new group.com.XXXX.YYYY format detailed here for 10.15+ https://developer.apple.com/forums/thread/721701 I've also followed the instructions below to get around the quirk of not being able to directly process it via XCode: https://developer.apple.com/forums/thread/737894 I've re-signed with Developer ID certificate, all that is smooth and successfully notarized. However upon running the app I get: My.app would like to access data from other apps. Checking ~/Library/Containers ~/Library/Group Containers I see the correct files folders have been created before I select Don't Allow and Allow. My app does not access any files or folders outside of the sandboxed directories. How can I prevent this from happening? In order to diagnose further, how to diagnose exactly which files/folder the app i
1
0
95
Aug ’25
Family Controls (Distribution) entitlement missing for Device Activity Monitor extension - blocking TestFlight distribution
Hi Apple Developer Community, I'm experiencing an issue with Family Controls entitlements for my iOS app that I'd like to discuss and see if others have encountered similar problems. Background: My app (BrightStart) uses Family Controls to help users build healthy morning routines by temporarily blocking distracting apps until they complete a sunlight exposure session. The core functionality relies on automatic time-based blocking (e.g., block social media apps from 6-8am daily). The Problem: I have Family Controls working perfectly in development builds, but I'm blocked from distributing via TestFlight due to entitlement issues with my Device Activity Monitor extension. Technical Details: Main app bundle ID: app.brightstart.app ✅ Has both Family Controls (Development) and Family Controls (Distribution) options available Extension bundle ID: app.brightstart.app.BrightStartMonitorExtension ❌ Only shows Family Controls (Development) - no Distribution option Error when archiving for TestFlight: ❌ Provisioning pr
1
0
201
Aug ’25
Reply to Hide search field always
Greetings, I would prefer the search field to be hidden until the search icon is clicked, like it is when the list is scrolled up a bit: However, at launch and also when I scroll to the top of the list, regardless of visibility setting, I get this: Please note, I have no commercial aspirations for this app, strictly personal use for a handfull of friends and I. We are learning to live with the search field when it appears as it can be scrolled out of view, but when present it is surprisingly distracting. Many of us, including myself, start typing in the search field to ADD an item, instead of clicking the plus icon. I confess that I am looking for a quick fix, as I know that custom tab bars and suchlike can eliminate this problem. However, I am not sure I am up to that task. I would most likely just learn to live with it as i am doing now. Thanks for any help you can provide. Here is the code: struct ListView: View { @Environment(.modelContext) private var modelContext @State private var selectedRow: String?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’25
Reply to NWBrowser + NWListener + NWConnection
ISTR a bug where QUIC would have problems connecting to Bonjour endpoints (that is, NWEndpoint.service(name:type:domain:interface:)) values. Hence this request on the thread you referenced. However, I just tested this today and it seems to be work. This was on macOS 15.5. So, that’s clearly not the problem. Oh, wait, you’re creating a group. When I repeated my test with a group rather than a connection, I see exactly this trap )-: It’s trivial to reproduce: import Network func main() { let endpoint = NWEndpoint.service(name: Guy Smiley, type: _test._udp, domain: local., interface: nil) let descriptor = NWMultiplexGroup(to: endpoint) let group = NWConnectionGroup(with: descriptor, using: .quic(alpn: [test])) print(group) } main() Please file a bug about this. Once you’re done, post your bug number here and I’ll update it with my findings. In the meantime, the workaround is to resolve the service, get its local DNS name and port, use those to create a .hostPort(…) endpoint, a
Aug ’25