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.
Post not yet marked as solved
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!
Post not yet marked as solved
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?
Post not yet marked as solved
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...?
Post not yet marked as solved
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!
Post not yet marked as solved
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 *****?)
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!
Post not yet marked as solved
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?
Post not yet marked as solved
How do I change the scale of my avatar in relation to the background
Post not yet marked as solved
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?
Post not yet marked as solved
Do we have diploma course for apple technologies
Post not yet marked as solved
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?
Post not yet marked as solved
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()
}
}
Post not yet marked as solved
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 {
}
}
}
}
}
Post marked as Apple Recommended
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?
Post not yet marked as solved
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
Will Xcode cloud be part of the developer program after beta?
Post not yet marked as solved
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.
Post not yet marked as solved
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'
Post not yet marked as solved
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