Use for questions specific to Apple's iOS 16 mobile operating system for iPhone and iPad, released in 2022. General iOS questions should use the [ios] tag.
Questions tagged [ios16]
487 questions
63
votes
2 answers
In Xcode 14 & iOS 16 purple warnings starting with 'This method should not be called on the main thread as it may lead to UI unresponsiveness.'
When loading the URL in WKWebView, it leads to a security warning and later app gets crashes.
Warning in UIApplicationMain -
This method should not be called on the main thread as it may lead to UI unresponsiveness.
How can I resolve this issue?

PrasathBabu
- 4,716
- 4
- 19
- 35
46
votes
13 answers
How to enable developer mode on iOS 16.0?
I got an alert when tried to open one provisioned testing build on iOS 16.0.
Alert says -
"Your App" required Developer Mode to run. Until Developer Mode has been
enabled this app will not be available for use.

Rizwan
- 3,324
- 3
- 17
- 38
44
votes
8 answers
SKStoreProductViewController crashes for unrecognized selector named sceneDisconnected: in iOS 15.6 beta5
In iOS 15.6 beta5 and iOS 16.0 beta:
When an UISceneDidDisconnectNotification was posted, any active SKStoreProductViewController instance would crash for the unrecognized selector named sceneDisconnected.
-[SKStoreProductViewController…

QianKai
- 443
- 1
- 4
- 5
31
votes
2 answers
LockScreen widget in Flutter?
There are some plugins like home_widget: ^0.1.6 that supports only HomeScreen Widgets.
Recently Apple launched LockScreen Widgets on iOS 16.
Is there any plugin for that? How do I implement that?

Anand
- 4,355
- 2
- 35
- 45
30
votes
1 answer
Could not get trait set for device iPad14,3 with version 16.1
Ever since I started using Xcode 14.1, I've been seeing this warning with my asset files
Could not get trait set for device iPad14,3 with version 16.1
I've checked the build log file and It doesn't have any more details than that message. It…

the Reverend
- 12,305
- 10
- 66
- 121
27
votes
8 answers
Xcode 14 beta error: Stored properties cannot be marked potentially unavailable with '@available'
I get this error when I run my app on Xcode 14 beta and I don't know how to fix it:
Stored properties cannot be marked potentially unavailable with '@available'
It doesn't pop up when I run Xcode 13, and the app runs smoothly. I am in the…

bmeikle
- 291
- 1
- 3
- 5
25
votes
3 answers
Main thread warning with CLLocationManager.locationServicesEnabled()
I just upgraded to Xcode 14.0 and when I run our app on iOS 16 devices, calls to:
CLLocationManager.locationServicesEnabled()
Are returning the warning:
This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider…

nurider
- 1,555
- 1
- 18
- 21
25
votes
4 answers
iOS 16 SwiftUI List Background
With the new SwiftUI update in iOS 16 List no longer depends on UITableView. So the following snippet we used to set the List background color to .clear is now useless:
UITableView.appearance().backgroundColor = .clear
I saw that someone used…

Timmy
- 4,098
- 2
- 14
- 34
21
votes
2 answers
Why doesn't clearing the new iOS 16 SwiftUI NavigationPath to "pop to root" animate smoothly back to the root view?
I have a new iOS 16 SwiftUI NavigationStack with navigation determined by the NavigationDestination modifier which works fine.
My question is why doesn't it animate smoothly by sliding back to the root view when clearing the NavigationPath if you…

Mgwd
- 452
- 3
- 10
21
votes
1 answer
SwiftUI 4 List initializer not available in iOS
When creating a list, previous versions of Xcode allowed for the following on iOS:
List(tabs, selection: $lastTab) {tab in
…
}
This now gives an error:
'init(_:selection:rowContent:)' is unavailable in iOS
also true for
List(tabs, id:\.self,…

Ferdinand Rios
- 972
- 6
- 18
20
votes
8 answers
is Force View Controller Orientation working in iOS 16 beta
According to the iOS & iPadOS 16 Beta 3 Release Notes:- Attempting to set an orientation on UIDevice via setValue:forKey: isn’t supported and no longer works. Instead, they say use: preferredInterfaceOrientationForPresentation.
In my case, force…

Abhayam
- 327
- 1
- 3
- 6
19
votes
5 answers
How to remove section header top padding in SwiftUI Plain List with iOS16
When we use SwiftUI List component and need a section header, top padding will appear on the header of each section.
Under iOS15, we use UITableView.appearance().sectionHeaderTopPadding = 0 to solve this problem.
Check out attachmentiOS15&Xcode14…

Eric
- 191
- 1
- 5
17
votes
1 answer
'init(destination:isActive:label:)' was deprecated in iOS 16.0: use NavigationLink(value:label:) inside a NavigationStack or NavigationSplitView
I have tried different iterations of examples posted on this site but nothing is going right.
I have also tried following the examples listed here:
Navigation to new navigation types:
I am getting the warning in this posts' title for deprecation of…

LizG
- 2,246
- 1
- 23
- 38
15
votes
4 answers
How do you fix Xcode 14 warning: NavigationLink presenting a value must appear inside a NavigationContent-based NavigationView. Link will be disabled
Since installing Xcode 14, I am now getting the following error message printed in my console:
NavigationLink presenting a value must appear inside a
NavigationContent-based NavigationView. Link will be disabled.
My app is structured as…

xanderbuck
- 221
- 2
- 5
15
votes
5 answers
iOS 16 Scene orientation issue
I always received this error when I tried to allowed only portrait orientation on my controller:
Error Domain=UISceneErrorDomain Code=101 "None of the requested orientations are supported by the view controller. Requested: landscapeLeft; Supported:…

Hatoine
- 151
- 1
- 1
- 3