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

Posts under WWDC21 tag

73 Posts

Post

Replies

Boosts

Views

Activity

Cannot access ManagedSettingsStore in extensions
Hi everyone, I am trying to change the settings when the shield button is clicked. When I called let store = ManagedSettingsStore() in the ShieldAction extension, store.shield.applications is nil. How can I access the instance created in the host app? Besides, has anyone ever tried to change the shield UI after clicking a button on the shield screen? I've searched around but no luck. is there any way I can notify the host app for further actions? Any help would be appreciated! Thank you very much. Sorry I don't know why I can't add the wwdc21-10123 tag.
1
0
1.4k
Jun ’22
Hide HomeIndicator in SwiftUI App
UIKit apps can hide the Home indicator by using prefersHomeIndicatorAutoHidden in UIViewController. However, in SwiftUI apps with the SwiftUI lifecycle the root ViewController returns false for that property and there is no way to change this without changing the Root ViewController. Setting my own UIHostingViewController as root would break things like .onOpenURL for SwiftUI App Lifecycle apps. so this is not an acceptable workaround. Has anything changed in iOS 15 that makes hiding the Home indicator possible without such side effects?
2
0
3.9k
May ’22
Support for Ambisonics in Airpods Spatial Audio renderer?
Hi, I am interested in decoding multichannel Higher-Order Ambisonics feeds to the Spatial Audio renderer discussed in the "Immerse your app in spatial audio" WWDC21 talk. However, I could not find any documentation about which multichannel audio formats are actually supported by the renderer, and a search for "Ambisonics" in the developer documentation only contains results pertaining to the Audio DriverKit. Can someone please enlighten me? Thank you!
6
0
3.7k
May ’22
barTintColor not working in iOS 15
Hi, When I run the following code in application(_ :didFinishLaunchingWithOptions) in iOS 15, the bar color turns transparent (thus, showing the black background underneath), while the same code works fine in iOS 14.5: UINavigationBar.appearance().isTranslucent = false UINavigationBar.appearance().barTintColor = .red Here's the screenshots of Simulators running iOS 14.5 and iOS 15: I'm using Xcode 13 on macOS Big Sur 11.4. Thanks!
24
0
86k
May ’22
UITableView detailTextLabel equivalent in UIListContentConfiguration
I see there is a deprecation warning when using detailTextLabel of UITableViewCell. @available(iOS, introduced: 3.0, deprecated: 100000, message: "Use UIListContentConfiguration instead, this property will be deprecated in a future release.") open var detailTextLabel: UILabel? { get } // default is nil. label will be created if necessary (and the current style supports a detail label). But it is not clear how to use UIListContentConfiguration to support detailTextLabel that is on the right side of the cell. I only see secondaryText in UIListContentConfiguration that is always displayed as a subtitle. How does one use UIListContentConfiguration as a replacement?
2
0
1.3k
Apr ’22
ML API for handwriting to text
Is there a Machine Learning API that can take handwriting (either as a bitmap or as a list of points) and convert it to text? I know Scribble can be used to allow handwriting input into text fields, but in this API it is Scribble which controls the rendering of the handwriting. Is there an API where my app can render the handwriting and get information about the text content? In the Keynote demo Craig was able to get text content from a photo of a whiteboard. Are there APIs which would allow an app developer to create something similar?
1
0
2.2k
Apr ’22
FocusState SwiftUI not working
Hey! It seems like the focus state is not working. I even tried copying the example from the documentation directly into a new view and it didn't select the different textFields. Anybody that can see anything that I am missing? struct LoginForm: View {     enum Field: Hashable {         case username         case password     }     @State private var username = ""     @State private var password = ""     @FocusState private var focusedField: Field?     var body: some View {         Form {             TextField("Username", text: $username)                 .focused($focusedField, equals: .username)             SecureField("Password", text: $password)                 .focused($focusedField, equals: .password)             Button("Sign In") {                 if username.isEmpty {                     focusedField = .username                 } else if password.isEmpty {                     focusedField = .password                 } else {                 }             }         }     } }
7
0
11k
Feb ’22
UIDocumentBrowserViewController not showing Locations
On iOS 15 beta 1 running on a 12.9 iPad Pro, the UIDocumentBrowserViewController in my app does not display the Locations group or any of its members (On My iPad, iCloud Drive, etc...). This happens both for the shipping version in the App Store and for versions built with the iOS 15 SDK. However, the Locations group is displayed correctly in the Files app and for a sample project built from the document-based app template. I assume this is a plist issue or is perhaps related to the fact that the iPad was updated from iOS 13. I am wondering if anyone else is encountering this. Submitted as FB9140143. -Steve
1
0
1.3k
Feb ’22
Xcode 13 or iOS15 BUG?
I use "LSApplicationQueriesSchemes" in the project Info.plist, which contains 219 url schemes. I use the urlscheme contained in this file to determine if an app is installed on our user's phone, which worked fine before iOS15, but recently I had a problem after submitting an app update using xcode13, when I went to check if an app was installed, it prompted me "-canOpenURL:failed for URL: "xxxx://" - error: "This app is not allowed to query for scheme xxxx". I have added xxxx to the LSApplicationQueriesSchemes, but I still get this error, I tested changing the location or reducing the number of urlscheme included in the LSApplicationQueriesSchemes and found that The first 35 or so of the LSApplicationQueriesSchemes are working fine, and the first 35 or so after that will prompt this error. I don't know if this is a bug in xcode13 or a problem with ios15, it's still not right.
4
0
2.5k
Jan ’22
Xcode Cloud cannot build app with multiple targets and CocoaPods
I'm trying to build my app SolarWatch on Xcode Cloud. The setup was amazing. Everything setup and ready to go within 5 minutes. But my builds fail consistently where Xcode Cloud errors out when running the following build step and results in the attached error log screenshot. Tried both with release and beta environments. Any help appreciated. Run command: 'source /Volumes/Task/ci_build.env && source /Volumes/Task/ci_plan.env && xcodebuild archive -workspace /Volumes/workspace/repository/SolarWatch.xcworkspace -scheme SolarWatch -destination generic/platform=iOS -archivePath /Volumes/workspace/build.xcarchive -derivedDataPath /Volumes/workspace/DerivedData -resultBundleVersion 3 -resultBundlePath /Volumes/workspace/resultbundle.xcresult -resultStreamPath /tmp/resultBundleStream3a2d7024-571e-4e16-969d-5b570b91d2a8.json -IDEPostProgressNotifications=YES CODE_SIGN_IDENTITY=- AD_HOC_CODE_SIGNING_ALLOWED=YES COMPILER_INDEX_STORE_ENABLE=NO -hideShellScriptEnvironment'
2
0
4.1k
Jan ’22
Need help , need a command for the terminal
Hello, I have a problem of the following nature - on the macbook pro A1502 2015 Catalina OS, but on Mojave there was exactly the same problem Namely , I set all the settings so that the screen does not go out and the macbook does not go into sleep mode , but this does not help if it is inactive for about an hour , it still goes into sleep mode . Most likely there should be some commands that will not let him fall asleep , they would help me a lot, since it is impossible to do this through the graphical interface , I tried. I know how it's done. 1 I need a command that will never let a macbook fall asleep. I need it to always burn . 2 I need a command that can cancel command 1
2
0
560
Jan ’22
Cannot access ManagedSettingsStore in extensions
Hi everyone, I am trying to change the settings when the shield button is clicked. When I called let store = ManagedSettingsStore() in the ShieldAction extension, store.shield.applications is nil. How can I access the instance created in the host app? Besides, has anyone ever tried to change the shield UI after clicking a button on the shield screen? I've searched around but no luck. is there any way I can notify the host app for further actions? Any help would be appreciated! Thank you very much. Sorry I don't know why I can't add the wwdc21-10123 tag.
Replies
1
Boosts
0
Views
1.4k
Activity
Jun ’22
Xcode 13 beta -- how to see/work with PRs and comments?
The Xcode 13 part of the SOTU video and the https://developer.apple.com/xcode/ page mention "Team Comments" -- this seems really cool. But... how do you get the comments? And can you ADD or EDIT comments within Xcode? Or just see them? I've tried with a github repo and a bitbucket one but don't see those. Thanks!
Replies
3
Boosts
0
Views
9.5k
Activity
May ’22
Hide HomeIndicator in SwiftUI App
UIKit apps can hide the Home indicator by using prefersHomeIndicatorAutoHidden in UIViewController. However, in SwiftUI apps with the SwiftUI lifecycle the root ViewController returns false for that property and there is no way to change this without changing the Root ViewController. Setting my own UIHostingViewController as root would break things like .onOpenURL for SwiftUI App Lifecycle apps. so this is not an acceptable workaround. Has anything changed in iOS 15 that makes hiding the Home indicator possible without such side effects?
Replies
2
Boosts
0
Views
3.9k
Activity
May ’22
Xcode 13 vim mode documentation?
Is there any documentation on which commands are supported for vim mode now? I know there's the help bar (though I haven't seen it appear since yesterday...). Is there vimrc support, etc...?
Replies
22
Boosts
0
Views
31k
Activity
May ’22
Support for Ambisonics in Airpods Spatial Audio renderer?
Hi, I am interested in decoding multichannel Higher-Order Ambisonics feeds to the Spatial Audio renderer discussed in the "Immerse your app in spatial audio" WWDC21 talk. However, I could not find any documentation about which multichannel audio formats are actually supported by the renderer, and a search for "Ambisonics" in the developer documentation only contains results pertaining to the Audio DriverKit. Can someone please enlighten me? Thank you!
Replies
6
Boosts
0
Views
3.7k
Activity
May ’22
Universal Control
Having just updated both my iPad and my M1 Mac to the new betas, I guess it is safe to say that Universal Control isn't a live feature yet? (Or I am just an idiot?)
Replies
37
Boosts
0
Views
15k
Activity
May ’22
barTintColor not working in iOS 15
Hi, When I run the following code in application(_ :didFinishLaunchingWithOptions) in iOS 15, the bar color turns transparent (thus, showing the black background underneath), while the same code works fine in iOS 14.5: UINavigationBar.appearance().isTranslucent = false UINavigationBar.appearance().barTintColor = .red Here's the screenshots of Simulators running iOS 14.5 and iOS 15: I'm using Xcode 13 on macOS Big Sur 11.4. Thanks!
Replies
24
Boosts
0
Views
86k
Activity
May ’22
UITableView detailTextLabel equivalent in UIListContentConfiguration
I see there is a deprecation warning when using detailTextLabel of UITableViewCell. @available(iOS, introduced: 3.0, deprecated: 100000, message: "Use UIListContentConfiguration instead, this property will be deprecated in a future release.") open var detailTextLabel: UILabel? { get } // default is nil. label will be created if necessary (and the current style supports a detail label). But it is not clear how to use UIListContentConfiguration to support detailTextLabel that is on the right side of the cell. I only see secondaryText in UIListContentConfiguration that is always displayed as a subtitle. How does one use UIListContentConfiguration as a replacement?
Replies
2
Boosts
0
Views
1.3k
Activity
Apr ’22
avatar
How do I change the scale of my avatar in relation to the background
Replies
0
Boosts
0
Views
552
Activity
Apr ’22
ML API for handwriting to text
Is there a Machine Learning API that can take handwriting (either as a bitmap or as a list of points) and convert it to text? I know Scribble can be used to allow handwriting input into text fields, but in this API it is Scribble which controls the rendering of the handwriting. Is there an API where my app can render the handwriting and get information about the text content? In the Keynote demo Craig was able to get text content from a photo of a whiteboard. Are there APIs which would allow an app developer to create something similar?
Replies
1
Boosts
0
Views
2.2k
Activity
Apr ’22
Do we have diploma course for apple technologies
Do we have diploma course for apple technologies
Replies
1
Boosts
0
Views
783
Activity
Mar ’22
InHouse app need to be updated in iOS 15 beta
After upgrading to iOS 15, my company's InHouse app can't open with prompt that "App Name Need to Be Updated. The developer of this app needs to update it to work with this version of iOS." Why is it occurred and how can I solve this issue?
Replies
23
Boosts
0
Views
20k
Activity
Mar ’22
await call in didSet block
How can we call async functions in did set blocks? This code will trigger a compilation error: 'didSet' accessor cannot have specifier 'async' @Published var lastLocation: CLLocation? { didSet async { await pinPosition() } }
Replies
2
Boosts
0
Views
2.9k
Activity
Mar ’22
FocusState SwiftUI not working
Hey! It seems like the focus state is not working. I even tried copying the example from the documentation directly into a new view and it didn't select the different textFields. Anybody that can see anything that I am missing? struct LoginForm: View {     enum Field: Hashable {         case username         case password     }     @State private var username = ""     @State private var password = ""     @FocusState private var focusedField: Field?     var body: some View {         Form {             TextField("Username", text: $username)                 .focused($focusedField, equals: .username)             SecureField("Password", text: $password)                 .focused($focusedField, equals: .password)             Button("Sign In") {                 if username.isEmpty {                     focusedField = .username                 } else if password.isEmpty {                     focusedField = .password                 } else {                 }             }         }     } }
Replies
7
Boosts
0
Views
11k
Activity
Feb ’22
What is a Location Push Service Extension?
There's new API and some header documentation for "Location Push Service Extension"s. I haven't seen any sessions related to Core Location scheduled beyond Meet the Location Button Is there any documentation for this I have missed?
Replies
4
Boosts
0
Views
5.6k
Activity
Feb ’22
UIDocumentBrowserViewController not showing Locations
On iOS 15 beta 1 running on a 12.9 iPad Pro, the UIDocumentBrowserViewController in my app does not display the Locations group or any of its members (On My iPad, iCloud Drive, etc...). This happens both for the shipping version in the App Store and for versions built with the iOS 15 SDK. However, the Locations group is displayed correctly in the Files app and for a sample project built from the document-based app template. I assume this is a plist issue or is perhaps related to the fact that the iPad was updated from iOS 13. I am wondering if anyone else is encountering this. Submitted as FB9140143. -Steve
Replies
1
Boosts
0
Views
1.3k
Activity
Feb ’22
Xcode cloud question
Will Xcode cloud be part of the developer program after beta?
Replies
1
Boosts
0
Views
1.1k
Activity
Jan ’22
Xcode 13 or iOS15 BUG?
I use "LSApplicationQueriesSchemes" in the project Info.plist, which contains 219 url schemes. I use the urlscheme contained in this file to determine if an app is installed on our user's phone, which worked fine before iOS15, but recently I had a problem after submitting an app update using xcode13, when I went to check if an app was installed, it prompted me "-canOpenURL:failed for URL: "xxxx://" - error: "This app is not allowed to query for scheme xxxx". I have added xxxx to the LSApplicationQueriesSchemes, but I still get this error, I tested changing the location or reducing the number of urlscheme included in the LSApplicationQueriesSchemes and found that The first 35 or so of the LSApplicationQueriesSchemes are working fine, and the first 35 or so after that will prompt this error. I don't know if this is a bug in xcode13 or a problem with ios15, it's still not right.
Replies
4
Boosts
0
Views
2.5k
Activity
Jan ’22
Xcode Cloud cannot build app with multiple targets and CocoaPods
I'm trying to build my app SolarWatch on Xcode Cloud. The setup was amazing. Everything setup and ready to go within 5 minutes. But my builds fail consistently where Xcode Cloud errors out when running the following build step and results in the attached error log screenshot. Tried both with release and beta environments. Any help appreciated. Run command: 'source /Volumes/Task/ci_build.env && source /Volumes/Task/ci_plan.env && xcodebuild archive -workspace /Volumes/workspace/repository/SolarWatch.xcworkspace -scheme SolarWatch -destination generic/platform=iOS -archivePath /Volumes/workspace/build.xcarchive -derivedDataPath /Volumes/workspace/DerivedData -resultBundleVersion 3 -resultBundlePath /Volumes/workspace/resultbundle.xcresult -resultStreamPath /tmp/resultBundleStream3a2d7024-571e-4e16-969d-5b570b91d2a8.json -IDEPostProgressNotifications=YES CODE_SIGN_IDENTITY=- AD_HOC_CODE_SIGNING_ALLOWED=YES COMPILER_INDEX_STORE_ENABLE=NO -hideShellScriptEnvironment'
Replies
2
Boosts
0
Views
4.1k
Activity
Jan ’22
Need help , need a command for the terminal
Hello, I have a problem of the following nature - on the macbook pro A1502 2015 Catalina OS, but on Mojave there was exactly the same problem Namely , I set all the settings so that the screen does not go out and the macbook does not go into sleep mode , but this does not help if it is inactive for about an hour , it still goes into sleep mode . Most likely there should be some commands that will not let him fall asleep , they would help me a lot, since it is impossible to do this through the graphical interface , I tried. I know how it's done. 1 I need a command that will never let a macbook fall asleep. I need it to always burn . 2 I need a command that can cancel command 1
Replies
2
Boosts
0
Views
560
Activity
Jan ’22