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

Posts under WWDC21 tag

125 results found
Sort by:
Post not yet marked as solved
4.8k Views

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...?
Asked Last updated
.
Post not yet marked as solved
830 Views

Swift, iOS15, UIKit, CollectionView header issue

I am testing iOS15 and some new functionalities of UIKit. I've encountered some issues, not sure how to solve them. I did not change that code. This is just a piece of code that worked perfectly with the iOS 14, now after updating my target, it throws an error. Xcode crashes the moment when my custom header for the UICollectionView of type UICollectionElementKindSectionHeader is being returned for the dataSource. Here is my code: private func configureDataSource() { dataSource = UICollectionViewDiffableDataSource<Section, Follower>(collectionView: collectionView, cellProvider: { (collectionView, indexPath, followers) -> UICollectionViewCell? in let cell = collectionView.dequeueReusableCell(withReuseIdentifier: FollowerCell.reuseId, for: indexPath) as! FollowerCell cell.set(on: followers) return cell }) dataSource.supplementaryViewProvider = { (collectionView, kind, indexPath) in let header = collectionView.dequeueReusableSupplementaryView(ofKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: FollowersCollectionHeaderView.reuseId, for: indexPath) as! FollowersCollectionHeaderView header.set(with: self.user) return header } } The log says: the view returned from -collectionView:viewForSupplementaryElementOfKind:atIndexPath: does not match the element kind it is being used for. When asked for a view of element kind 'FollowersCollectionHeaderView' the data source dequeued a view registered for the element kind 'UICollectionElementKindSectionHeader'. I did cast UICollectionElementKindSectionHeader to FollowersCollectionHeaderView, therefore I am not sure what is the issue here. I've watched WWDC21 what's new in UIKit but haven't seen any mentioning of any change for that particular code. Any suggestions, what to fix in that code?
Asked
by jmgawe.
Last updated
.
Post not yet marked as solved
4.3k Views

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 *****?)
Asked
by briwil.
Last updated
.
Post not yet marked as solved
43 Views

Erase all content and settings restrictions is not working in iOS 15

On applying the configuration profile(com.apple.applicationaccess - Restriction) with allowEraseContentAndSettings to false in iOS 15 device, the restriction is not imposed on supervised device. Can see restriction applied in Setting->General->VPN&Device management ->MDM profile-> Restriction. But on checking Setting->General->Reset Erase content and setting is shown. On clicking it the device has erased to factory setting. Have attached the mobileconfig and screenshots of the setting. <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>PayloadContent</key> <array> <dict> <key>PayloadDescription</key> <string>Configures restrictions</string> <key>PayloadDisplayName</key> <string>Restrictions</string> <key>PayloadIdentifier</key> <string>com.apple.applicationaccess.8DA3EB9B-3C9E-45C1-99BC-B2A900E55628</string> <key>PayloadType</key> <string>com.apple.applicationaccess</string> <key>PayloadUUID</key> <string>8DA3EB9B-3C9E-45C1-99BC-B2A900E55628</string> <key>PayloadVersion</key> <integer>1</integer> <key>allowEraseContentAndSettings</key> <false/> </dict> </array> <key>PayloadDisplayName</key> <string>ContentRestriction</string> <key>PayloadIdentifier</key> <string>C7A744A3-0738-43C9-B962-DEBAABE63F4E</string> <key>PayloadRemovalDisallowed</key> <false/> <key>PayloadType</key> <string>Configuration</string> <key>PayloadUUID</key> <string>4BED8AF1-F1AC-4D2D-8B29-A130453BECB9</string> <key>PayloadVersion</key> <integer>1</integer> </dict> </plist> ![]("https://developer.apple.com/forums/content/attachment/d6e05749-559e-4428-95ad-96f304f36049" "title=IMG_0004.PNG;width=1668;height=2224") ![]("https://developer.apple.com/forums/content/attachment/3d4644b6-c074-486c-8010-1b843dc78c77" "title=IMG_0003.PNG;width=1668;height=2224") ` ![]("https://developer.apple.com/forums/content/attachment/a940b74b-3de0-4b52-b086-5e1102cb6ece" "title=IMG_0002.jpg;width=1668;height=2224") ``
Asked
by fahath.
Last updated
.
Post marked as solved
12k Views

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!
Asked Last updated
.
Post not yet marked as solved
44 Views

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"
Asked
by mpullan.
Last updated
.
Post not yet marked as solved
178 Views

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.
Asked
by ethanfan.
Last updated
.
Post not yet marked as solved
171 Views

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.
Asked
by aman.sa.
Last updated
.
Post not yet marked as solved
8.0k Views

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?
Asked
by Masaki.F.
Last updated
.
Post not yet marked as solved
803 Views

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!
Asked
by drewster.
Last updated
.
Post marked as Apple Recommended
3.9k Views

iOS 15, accelerate module, armv7, Xcode 13

Hi Team, Attempting to build our app with Xcode 13 / iOS 15, and getting a fail during archive, appearing to come from within the accelerate module. The two errors are: /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/usr/lib/swift/Accelerate.swiftmodule/armv7-apple-ios.swiftinterface:591:6: error: enum cases with associated values cannot be marked potentially unavailable with '@available'   @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)    ^ in a number of places, and the following one, once: /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/usr/lib/swift/Accelerate.swiftmodule/armv7-apple-ios.swiftinterface:1:1: error: failed to build module 'Accelerate'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.5 (swiftlang-1300.0.17.216 clang-1300.0.18.1)', while this compiler is 'Apple Swift version 5.5 (swiftlang-1300.0.19.104 clang-1300.0.18.4)'). Please select a toolchain which matches the SDK. // swift-interface-format-version: 1.0 ^ This is Version 13.0 beta (13A5154h), doing a release build archive (dev build/run succeeds if that helps). Any insights into whats going on would be great? Cheers.
Asked
by crafterm.
Last updated
.
Post not yet marked as solved
35 Views

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?
Asked
by ailalab.
Last updated
.
Post not yet marked as solved
77 Views

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?
Asked
by gg-fm.
Last updated
.
Post not yet marked as solved
44 Views

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
Asked
by hmirzaei.
Last updated
.
Post not yet marked as solved
134 Views

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. 🙏
Asked
by VladS94.
Last updated
.