Connect with Apple engineers to discuss the latest Apple technologies announced at WWDC21.

Posts under WWDC21 tag

55 Posts

Post

Replies

Boosts

Views

Activity

SwiftUI bottom-first List (inverted)
How can I create a List that starts on the bottom?  All Lists start on top, but in a chat, the desired content scroll direction is up (inverted). There are workarounds that rely on flipping the list with rotation effects, but these don’t work well, and make the logic very hard to understand. Scrolling to bottom after some delay on list appear has side effects (loads rows on top). Ideally there would be List { … }.scrollDirection(.inverted) api, that automatically loads the list from its last item, not first.
3
0
4.2k
Oct ’21
Monterey Universal Control
Yesterday (9/22) I upgraded to Monterey beta. I was able to connect my iMac to my iPad Pro but was unable to engage Universal Control. Today, there was an update to beta 12 and now, I can not connect the two devices. The iPad is reporting that pairing to the Mac was unsuccessful as "iMac is not supported"
0
0
728
Sep ’21
CNCopyCurrentNetworkInfo return null value on iOS 15 Beta, even though VPN Profile is installed
As per the document, the following conditions should be met in order to retrieve network info: The app uses Core Location, and has the user’s authorization to use location information. The app uses the NEHotspotConfiguration API to configure the current Wi-Fi network. The app has an active VPN configuration installed. The app has an active NEDNSSettingsManager configuration installed. In our case, the application relies on point 3 i.e installed VPN profile. But, I observed that CNCopyCurrentNetworkInfo always returns null even though a VPN profile is configured. This works fine with iOS 14.x versions. I also tried using fetchCurrentWithCompletionHandler API. But, ended up with the same result. Any help/lead would be highly appreciated. Thanks in advance.
2
0
1.1k
Sep ’21
UIScrollView moving view up on iOS 15
Hi, I had the problem of my navigationBar being transparent on iOS15. After setting the scrollEdgeAppearance as suggested the problem got resolved. appearance.configureWithOpaqueBackground() appearance.backgroundColor = <your tint color> navigationBar.standardAppearance = appearance; navigationBar.scrollEdgeAppearance = navigationBar.standardAppearance However, wherever I have a scrollView embedded in my ViewController, the view is moved up for around 50 px. Did anyone experience a similar issue?
0
0
801
Sep ’21
baseline exposure and exposure compensation
I am working with raw DNG files I have captured with iphone 11 and iphone 12 ( I used Moment app to capture raw - not proraw). I want to check the linearity of raw RGB according to ISO. It is (almost) linear up to ISO of around 200. Apparently there is a Baseline Exposure and also a Exposure Bias (or Exposure Compensation) tag available in the DNG. I correct the linear values based on 2^(baselineExposure+exposureCompensation) and it still does not fix my linearity issue. The best fit (very strange) I could get to my data was 2^baselineExposure * 2^(-10*exposureCompensation) but still far from linear. Anybody knows how to interpret those tags? Thanks, Hamid
0
0
747
Sep ’21
iOS 15 Spotlight rich results
Hello 👋. At WWDC 21 Apple said that spotlight now has rich results for content like movies and artists and I'm trying to implement this feature. I already have an app that has some move items indexed in the spotlight, but they show up in the old way, not with the new rich results. Any idea if this feature is enabled in the latest beta? I've also watched https://developer.apple.com/videos/play/wwdc2021/10098/ (Showcase app data in Spotlight) session but from my understanding, these are just improvements to the NSCoreDataCoreSpotlightDelegate. Any help is appreciated. 🙏
0
0
645
Sep ’21
Safari/Webkit Team and Developer Communication
One of the primary issues with web-development and dealing with Apple/Safari compared to dealing with the Microsoft Edge and Google Chrome teams is that it feels difficult for developers to have voice in Safari development. Requests on bugs.webkit.org go unanswered and critical features which are essential too many developers are never placed in the pipeline. From an outsiders perspective there seems to be several major issues: The Safari team is underfunded and needs more engineers and a much higher budget There is the perception that a significant number of critical features do not get developed because Apple does not want competition with the AppStore and by not developing those features it forces developers to use the App Store instead. Developers are not given an opportunity to communicate with Apple Having worked with Safari development since 2003 when it was one of the best, most feature rich advanced browsers, it's really disappointing for Safari to be the limiting factor in every single app we develop. Apple has the financing and the engineering talent to fix this. How can we open these lines of communication and make Safari one of the best browsers for developers once again?
11
0
7.6k
Sep ’21
[macOS 12][iOS 15]: Attaching Safari Debugger to app's WKWebView will crash the app
Hello everyone, This is a bit of a first for me, attaching the Safari Debugger to a webview in our app will crash the app itself. This is Safari + macOS 12 + Xcode 13 + iOS 15 Simulator so there are plenty of moving parts still it is a bit of a new one :). Raised the following Bug Report: FB9145558 This is the sanitised stack trace I can share: Process: APPLICATION_NAME [17438] Path: /Users/USER/Library/Developer/CoreSimulator/Devices/1F4F2CDE-64EB-44BA-8B40-1CC6197A3BC9/data/Containers/Bundle/Application/49053572-EE15-41B7-A8D0-94A7D92D76E5/APPLICATION_NAME.app/APPLICATION_NAME Identifier: BUNDLE_PREFIX.APPLICATION_NAME Version: 11.20.7 (2847) Code Type: X86-64 (Native) Role: Foreground Parent Process: launchd_sim [17090] Coalition: com.apple.CoreSimulator.SimDevice.1F4F2CDE-64EB-44BA-8B40-1CC6197A3BC9 [7161] Responsible Process: SimulatorTrampoline [3280] Date/Time: 2021-06-09 13:49:02.3675 +0100 Launch Time: 2021-06-09 13:48:44.2049 +0100 OS Version: macOS 12.0 (21A5248p) Release Type: User Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000012 VM Region Info: 0x12 is not in any region. Bytes before following region: 4304560110 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> __TEXT 100926000-101ee2000 [ 21.7M] r-x/r-x SM=COW ...pp/APPLICATION_NAME Exception Note: EXC_CORPSE_NOTIFY Termination Reason: SIGNAL 11 Segmentation fault: 11 Terminating Process: exc handler [17438] Triggered by Thread: 16 Full sanitised stack trace attached. Full Crash Log Kind Regards, Goffredo
1
0
1.8k
Sep ’21
Adding multiple custom catalogs?
The operation couldn’t be completed. (com.apple.ShazamKit error 300.) I get this error when I try to add multiple shazamcatalogs on a single SHCustomCatalog. The fact that the operation is called add(from:) and not 'load' lets me suggest that it's meant to use that way. Am I wrong? And yes, both work work if I just add one at a time. let catalog = SHCustomCatalog() do { try catalog.add(from: url1) try catalog.add(from: url2) {...} } catch {...} . . Also, fun fact: I was working on a ShazamKit myself before dubDub and it's a really fascinating topic and so awesome to see how well it works, great job! 👏
1
0
1.1k
Sep ’21
Async/let producing error in playground? Xcode 13.0 beta
I'm seeing an error trying to test out async let. It seems like this should work, based on the async/let and structured concurrency session videos. Here's the code: func doIt() async -> String {     let t = TimeInterval.random(in: 0.25 ... 2.0)     Thread.sleep(forTimeInterval: t)     return String("\(Double.random(in: 0...1000))") } async {     async let a = doIt()     async let b = doIt()     async let c = doIt()     async let d = doIt()     let results = await [a, b, c, d]     for result in results {         print("  \(result)")     } } But, I get this error for every "async let" statement: error: AsyncLetSwift55WWDC21.playground:12:15: error: expression is 'async' but is not marked with 'await' async let a = doIt() ^ await Am I missing something key, or is this a bug? I'm running this in the Xcode 13.0 beta, in a Playground. Thanks!!
12
0
4.5k
Aug ’21
SwiftUI bottom-first List (inverted)
How can I create a List that starts on the bottom?  All Lists start on top, but in a chat, the desired content scroll direction is up (inverted). There are workarounds that rely on flipping the list with rotation effects, but these don’t work well, and make the logic very hard to understand. Scrolling to bottom after some delay on list appear has side effects (loads rows on top). Ideally there would be List { … }.scrollDirection(.inverted) api, that automatically loads the list from its last item, not first.
Replies
3
Boosts
0
Views
4.2k
Activity
Oct ’21
Monterey Universal Control
Yesterday (9/22) I upgraded to Monterey beta. I was able to connect my iMac to my iPad Pro but was unable to engage Universal Control. Today, there was an update to beta 12 and now, I can not connect the two devices. The iPad is reporting that pairing to the Mac was unsuccessful as "iMac is not supported"
Replies
0
Boosts
0
Views
728
Activity
Sep ’21
AssistiveTouch on Apple Watch
How to turn on AssistiveTouch on Apple Watch? I saw it on the keynote available in WatchOS8. I am using series 3 watch.
Replies
1
Boosts
0
Views
1k
Activity
Sep ’21
CNCopyCurrentNetworkInfo return null value on iOS 15 Beta, even though VPN Profile is installed
As per the document, the following conditions should be met in order to retrieve network info: The app uses Core Location, and has the user’s authorization to use location information. The app uses the NEHotspotConfiguration API to configure the current Wi-Fi network. The app has an active VPN configuration installed. The app has an active NEDNSSettingsManager configuration installed. In our case, the application relies on point 3 i.e installed VPN profile. But, I observed that CNCopyCurrentNetworkInfo always returns null even though a VPN profile is configured. This works fine with iOS 14.x versions. I also tried using fetchCurrentWithCompletionHandler API. But, ended up with the same result. Any help/lead would be highly appreciated. Thanks in advance.
Replies
2
Boosts
0
Views
1.1k
Activity
Sep ’21
Health Care Data using Apple Research or Health app?
How can we access to our health care data? Can we download the data through the "Health" app or through the studies in "Apple Research" app? or any other way to access our own data?
Replies
0
Boosts
0
Views
411
Activity
Sep ’21
UIScrollView moving view up on iOS 15
Hi, I had the problem of my navigationBar being transparent on iOS15. After setting the scrollEdgeAppearance as suggested the problem got resolved. appearance.configureWithOpaqueBackground() appearance.backgroundColor = <your tint color> navigationBar.standardAppearance = appearance; navigationBar.scrollEdgeAppearance = navigationBar.standardAppearance However, wherever I have a scrollView embedded in my ViewController, the view is moved up for around 50 px. Did anyone experience a similar issue?
Replies
0
Boosts
0
Views
801
Activity
Sep ’21
baseline exposure and exposure compensation
I am working with raw DNG files I have captured with iphone 11 and iphone 12 ( I used Moment app to capture raw - not proraw). I want to check the linearity of raw RGB according to ISO. It is (almost) linear up to ISO of around 200. Apparently there is a Baseline Exposure and also a Exposure Bias (or Exposure Compensation) tag available in the DNG. I correct the linear values based on 2^(baselineExposure+exposureCompensation) and it still does not fix my linearity issue. The best fit (very strange) I could get to my data was 2^baselineExposure * 2^(-10*exposureCompensation) but still far from linear. Anybody knows how to interpret those tags? Thanks, Hamid
Replies
0
Boosts
0
Views
747
Activity
Sep ’21
iOS 15 Spotlight rich results
Hello 👋. At WWDC 21 Apple said that spotlight now has rich results for content like movies and artists and I'm trying to implement this feature. I already have an app that has some move items indexed in the spotlight, but they show up in the old way, not with the new rich results. Any idea if this feature is enabled in the latest beta? I've also watched https://developer.apple.com/videos/play/wwdc2021/10098/ (Showcase app data in Spotlight) session but from my understanding, these are just improvements to the NSCoreDataCoreSpotlightDelegate. Any help is appreciated. 🙏
Replies
0
Boosts
0
Views
645
Activity
Sep ’21
Safari/Webkit Team and Developer Communication
One of the primary issues with web-development and dealing with Apple/Safari compared to dealing with the Microsoft Edge and Google Chrome teams is that it feels difficult for developers to have voice in Safari development. Requests on bugs.webkit.org go unanswered and critical features which are essential too many developers are never placed in the pipeline. From an outsiders perspective there seems to be several major issues: The Safari team is underfunded and needs more engineers and a much higher budget There is the perception that a significant number of critical features do not get developed because Apple does not want competition with the AppStore and by not developing those features it forces developers to use the App Store instead. Developers are not given an opportunity to communicate with Apple Having worked with Safari development since 2003 when it was one of the best, most feature rich advanced browsers, it's really disappointing for Safari to be the limiting factor in every single app we develop. Apple has the financing and the engineering talent to fix this. How can we open these lines of communication and make Safari one of the best browsers for developers once again?
Replies
11
Boosts
0
Views
7.6k
Activity
Sep ’21
[macOS 12][iOS 15]: Attaching Safari Debugger to app's WKWebView will crash the app
Hello everyone, This is a bit of a first for me, attaching the Safari Debugger to a webview in our app will crash the app itself. This is Safari + macOS 12 + Xcode 13 + iOS 15 Simulator so there are plenty of moving parts still it is a bit of a new one :). Raised the following Bug Report: FB9145558 This is the sanitised stack trace I can share: Process: APPLICATION_NAME [17438] Path: /Users/USER/Library/Developer/CoreSimulator/Devices/1F4F2CDE-64EB-44BA-8B40-1CC6197A3BC9/data/Containers/Bundle/Application/49053572-EE15-41B7-A8D0-94A7D92D76E5/APPLICATION_NAME.app/APPLICATION_NAME Identifier: BUNDLE_PREFIX.APPLICATION_NAME Version: 11.20.7 (2847) Code Type: X86-64 (Native) Role: Foreground Parent Process: launchd_sim [17090] Coalition: com.apple.CoreSimulator.SimDevice.1F4F2CDE-64EB-44BA-8B40-1CC6197A3BC9 [7161] Responsible Process: SimulatorTrampoline [3280] Date/Time: 2021-06-09 13:49:02.3675 +0100 Launch Time: 2021-06-09 13:48:44.2049 +0100 OS Version: macOS 12.0 (21A5248p) Release Type: User Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000012 VM Region Info: 0x12 is not in any region. Bytes before following region: 4304560110 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> __TEXT 100926000-101ee2000 [ 21.7M] r-x/r-x SM=COW ...pp/APPLICATION_NAME Exception Note: EXC_CORPSE_NOTIFY Termination Reason: SIGNAL 11 Segmentation fault: 11 Terminating Process: exc handler [17438] Triggered by Thread: 16 Full sanitised stack trace attached. Full Crash Log Kind Regards, Goffredo
Replies
1
Boosts
0
Views
1.8k
Activity
Sep ’21
object capture export as obj
I have a question about Apple's new API, Object Capture. When I use this API, the 3D model is generated as a usdz file.Is it possible to generate 3D models as obj files, and if so, how?
Replies
1
Boosts
0
Views
1.5k
Activity
Sep ’21
Error when feeding AVSampleBufferDisplayLayer to AVPictureInPictureController
I have an AVSampleBufferDisplayLayer playing a local video. When adding the AvSampleBufferDisplayLayer as a contentSource to AVPictureInPictureController, it fails with The operation couldn’t be completed. (PGPegasusErrorDomain error -1003.) I can't find any documented error with that domain an error code. Help?
Replies
2
Boosts
0
Views
1.2k
Activity
Sep ’21
Adding multiple custom catalogs?
The operation couldn’t be completed. (com.apple.ShazamKit error 300.) I get this error when I try to add multiple shazamcatalogs on a single SHCustomCatalog. The fact that the operation is called add(from:) and not 'load' lets me suggest that it's meant to use that way. Am I wrong? And yes, both work work if I just add one at a time. let catalog = SHCustomCatalog() do { try catalog.add(from: url1) try catalog.add(from: url2) {...} } catch {...} . . Also, fun fact: I was working on a ShazamKit myself before dubDub and it's a really fascinating topic and so awesome to see how well it works, great job! 👏
Replies
1
Boosts
0
Views
1.1k
Activity
Sep ’21
PhotogrammetrySession cannot be created
Hi, I'm using the sample code to create a 3D object from photos using PhotogrammetrySession but it returns this error: Error creating session: cantCreateSession("Native session create failed: CPGReturn(rawValue: -11)") Sample code I've used is this and this. Any idea? Thanks in advance!
Replies
8
Boosts
0
Views
4.1k
Activity
Aug ’21
Async/let producing error in playground? Xcode 13.0 beta
I'm seeing an error trying to test out async let. It seems like this should work, based on the async/let and structured concurrency session videos. Here's the code: func doIt() async -> String {     let t = TimeInterval.random(in: 0.25 ... 2.0)     Thread.sleep(forTimeInterval: t)     return String("\(Double.random(in: 0...1000))") } async {     async let a = doIt()     async let b = doIt()     async let c = doIt()     async let d = doIt()     let results = await [a, b, c, d]     for result in results {         print("  \(result)")     } } But, I get this error for every "async let" statement: error: AsyncLetSwift55WWDC21.playground:12:15: error: expression is 'async' but is not marked with 'await' async let a = doIt() ^ await Am I missing something key, or is this a bug? I'm running this in the Xcode 13.0 beta, in a Playground. Thanks!!
Replies
12
Boosts
0
Views
4.5k
Activity
Aug ’21