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
3
votes
0 answers
SwiftUI: Customizing the Native Navigation Bar in SwiftUI to Mimic the Apple TV App's Style and Animations - iOS 16
How can I customize the native navigation bar in SwiftUI to resemble the one used in the Apple TV app for iOS? On the detail screen, there's a native navigation bar where the tint color of the toolbar button item and the navigation bar background…

Yatheesha
- 10,412
- 5
- 42
- 45
3
votes
0 answers
SwiftUI Picker Options Flipped in RTL
As you can see in the attached image, the picker options are not aligned automatically to the right-hand side for RTL languages, and also flipped.
The picker is nothing fancy either, the standard way.
struct ContentView: View {
@State…

CrisAhmad
- 29
- 5
3
votes
1 answer
SwiftUI open ShareLink from ActionSheet (confirmationDialog) Not Working
I have a ShareLink inside an ActionSheet (confirmationDialog) but it's not opening. Can anyone confirm if this is possible or not? I imagine it's something to do with the action sheet being dismissed at the same time.
.confirmationDialog("",…

Dan
- 543
- 2
- 13
3
votes
0 answers
How to exclude action activities from ShareSheet?
I am using a ShareLink to share a file, in this case, a pdf. I want to exclude Activities like Messages in the same way I can do it with the ActivityController. How can I do it with ShareLink?
...
let fileURL = …

Ariel Antonio Fundora
- 1,330
- 15
- 20
3
votes
0 answers
iOS 16 collectionView layoutAttributesForItem return the wrong size with estimated height compositional layout
I ran into an ios 16 problem when layoutAttributesForItem returns a very small cell size if it is far beyond the scope and visibility and has not yet been seen.
I'm using compositional layout with estimated(1) and it feels like its real size is not…

Nikolay Pivnik
- 31
- 2
3
votes
0 answers
Programmatically appending to NavigationStack path behaves differently than using NavigationLink
I have a basic log-in flow on a project I'm working on and wanted to try out the new programmatic navigation in SwiftUI from iOS 16. I noticed that appending to the path array after pressing a Button for example made transitions behave differently…

Daniel Cajiao
- 31
- 5
3
votes
1 answer
How to implement the same iOS 16 lock screen circular widget myself?
I'm trying to implement lock screen widget myself
Widget I currently implement
I want to implement this ios16 lock screen widget
I've made almost everything, but I haven't been able to implement the small circle's transparent border.
I couldn't…

msgu
- 45
- 5
3
votes
1 answer
iOS - Check if Developer Mode is ON (Swift)
My App relies on checking user location upon start.
On iOS 16, when the user enables the Developer Mode on Privacy Settings they can simulate any location on the device using a GPX file.
The device actually changes the location of the device and…

PoolHallJunkie
- 1,345
- 14
- 33
3
votes
0 answers
[MyClass initWithCoder:]: unrecognized selector sent to instance - On iOS16
I am using the [NSKeyedUnarchiver unarchiveObjectWithData:result] methode for unarchiving NSData in my objective c bases app.
NSMutableArray *array = (NSMutableArray *)[NSKeyedUnarchiver unarchiveObjectWithData:result];
This is working pretty fine…

Mohammed Abdul Basith
- 206
- 2
- 8
3
votes
1 answer
Why does the navigation title change from large to "scrolled" when popping a NavigationLink inside a NavigationStack on iOS 16?
I have run into some unexpected behavior when using a NavigationLink inside a NavigationStack. If I navigate from a view with a large navigation title to a view with an inline title, the title display mode does not automatically revert to large when…

jus10
- 31
- 1
3
votes
2 answers
iOS16.1 Mapkit [VKDefault] Exceeded Metal Buffer threshold of 50000
So for our maps, we are using MapKit. We overlay a layer using MKPolygons above the map. This feature has been working since iOS15 but since 16.1 we get the following error and the app freezes (does not crash).
[VKDefault] Exceeded Metal Buffer…

t.ios
- 1,024
- 12
- 18
3
votes
1 answer
wkwebview can not work, only in ios16.1, did anyone meet?
only in ios16.1, wkwebview can not work.
``
let cfg = WKWebViewConfiguration()
let web = WKWebView(frame: view.bounds, configuration: cfg)
web.uiDelegate = self
web.navigationDelegate = self
view.addSubview(web)
web.load(URLRequest(url:…

Bleach
- 31
- 1
- 2
3
votes
1 answer
Why is iOS 16/Xcode 14 causing UI responsiveness issues for apps that use location services and adMob?
I get this error:
This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the -locationManagerDidChangeAuthorization: callback and checking authorizationStatus first.
Before iOS 16 UI was fine, now it…

florida27
- 67
- 1
- 7
3
votes
1 answer
Trouble with changing variables from the new iOS 16 App Intents
I have scaled down one of the Apps I am working on to use to learn how to program App Intents and utilize Siri in my apps. I will post the scaled-down version of my code below in its simplest form. This is a simple app that merely keeps a total in…

BooneDownSouth
- 33
- 4
3
votes
1 answer
Disable orientation change animations
I need to disable orientation change animations on devices updated recently to iOS 16.
For older iOS versions there was a solution to prevent animations. The view hierarchy was changing instantly after disabling animations using the UIView method:
-…

Greg
- 442
- 4
- 16