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
1 answer
How to configure axes and set explicit axis start and end points on a line chart in iOS 16.0's Swift Charts
In this code I declare a Chart with an x scale domain between two doubles:
Chart(points, id: \.self) { point in
LineMark(
x: .value("time/s", point.timestamp),
y: .value("potential/mV", point.potential)
)
…

Tahmid Azam
- 566
- 4
- 16
3
votes
3 answers
Swift iOS 16 I can no longer present a UIViewController from the keyboard, without closing it
before iOS 16 I could present a UIViewController over the keyboard without having it close, by using this code:
if let window = UIApplication.shared.windows.last,
String(describing: type(of: window)).equals("UIRemoteKeyboardWindow") {
let…

Meroelyth
- 5,310
- 9
- 42
- 52
3
votes
0 answers
Can't fetch iOS 16 Beta Device Activity Data Application localizedDisplayName
I am using iOS 16 beta 3 and try to fetch all of the applications daily screen duration times. I am using the code bellow it fetches duration and bundleIdentifier but localizedDisplayName always returns nil. Does anyone facing with the same issue?…

Tarık Yılıkoğlu
- 141
- 1
- 6
3
votes
1 answer
SwiftUI iOS 16, close multiple modals not working
I'm trying to present multiple modals on top of my home view, but when I try to dismiss all modals, there is only the first one that close...
(I know, there is a lot of subject about this, but I didn't found any solution that was working for…

Alexandre Cools
- 93
- 5
3
votes
1 answer
SwiftUI: How to update detail column from a distant child using iOS16/iPadOS16 NavigationSplitView and NavigationLink
I'm trying to update an older app to use the new NavigationSplitView and NavigationLink, but trying to wrap my head around the proper way to do it when the sidebar has a hierarchy of child objects and I want to update the detail view from a distant…

tharris
- 2,192
- 2
- 13
- 14
2
votes
0 answers
NavigationSplitView resetting when app enters background
I've been trying to build an app using NavigationSplitView and SwiftUI on iOS 16. I noticed that as soon almost as the app enters the background (sometimes I have to wait a few seconds before immediately reopening the app) the contents of the…

user2898617
- 607
- 7
- 10
2
votes
0 answers
ERROR: Unable to get SHSH blobs for this device
Request URL set to https://gs.apple.com/TSS/controller?action=2
TSS server returned: STATUS=94&MESSAGE=This device isn't eligible for the requested build.
ERROR: TSS request failed (status=94, message=This device isn't eligible for the requested…

Wassim Sliti
- 31
- 1
2
votes
0 answers
How to Customize the Selected Row's Color in a Table in SwiftUI?
I'm facing an issue with customizing the selected row's text color in a Table() in SwiftUI. I've set the foregroundColor to a custom color to match my app's design. However, when I select a row, the selected row's text becomes difficult to read.
If…

Yiran Feng
- 21
- 1
2
votes
1 answer
iOS 16 additional empty space in navigation item
When I creatе the simplest titleView with iOS 16 and add it to the navigationItem I see an additional space that I cannot remove in any way. I did not have this issue on iOS 15, does anybody know what can be done?
The issue I am trying to solve is…

s1321222
- 23
- 3
2
votes
1 answer
How to style a Map view in SwiftUI?
How do you style a Map view in SwiftUI?
Here is an example screenshot of a default map view in SwiftUI.
I would like to style it like this with just black and white and then the detail for the buildings between streets would just be flat and all…

Berry Blue
- 15,330
- 18
- 62
- 113
2
votes
0 answers
How to fix this 'Xcode14 - iOS16' keyboard strange UI problem?
There is a func to change the return key type of the keyboard.
func refreshReturnKeyType() {
textView.resignFirstResponder()
textView.returnKeyType = .default
textView.reloadInputViews()
textView.becomeFirstResponder()
}
When i…

xiaming
- 21
- 1
2
votes
1 answer
Adding Shadow to LazyHGrid Element Selection
I have an app in which the user may select a SF icon from those within a LazyHGrid. I would like to add a shadow around the selected icon and remove the shadow when deselected.
Currently, the working code below may be used to scroll the available…

Galen Smith
- 299
- 2
- 14
2
votes
1 answer
SwiftUI ShareLink share custom data
I am trying to share a custom struct between two users within the App via ShareLink (UIActivityViewController) in SwiftUI. I created a custom Document Type, the Exported Type Identifier and marked the struct as Transferable.
However, while I am able…

Nimbahus
- 477
- 3
- 16
2
votes
0 answers
Unable to install App on real device or distribute it ad hoc, normal on Simulator
Running on the simulator works fine, but when I try to run on an iPhone using a USB cable, Xcode says:
A valid provisioning profile for this executable was not found.
Both the app and simulator are running iOS 16.
Xcode 14.1
Latest Cocoapod and…

thefrankie
- 41
- 1
- 4
2
votes
0 answers
SwiftUI increasing sheet size after NavigationLink with the "selection" in "presentationDetents" cuts off view inside the sheet
Since iOS 16 there is a new feature for the ".sheet" modifier called ".presentationDetents". ".presentationDetents" has a parameter called "selection" where you can pass a Binding. You can programmatically resize the sheet with the "selection"…

Gipfeli
- 197
- 3
- 8