Questions tagged [ios16]

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.

487 questions
6
votes
2 answers

How to localize title and description? (LocalizedStringResource)

I am working on my SwiftUI project and added some AppIntents for the Shortcuts app. Currently I am not able to localize the title and description. The title and the description are of type LocalizedStringResource (available from iOS16+). I tried to…
Timo
  • 138
  • 10
6
votes
2 answers

SwiftUI NavigationView vs NavigationStack for iOS 15/16

I'm trying to make my iPhone apps (targeting iOS 15 and above) fully compatible with iOS 16 without success! I don't know how to have NavigationView for iOS 15 and NavigationStack for iOS 16 in the same piece of code. The code above isn't accepted…
Alexnnd
  • 429
  • 4
  • 13
6
votes
0 answers

SwiftUI widget Text.DateStyle not working in iOS 16

I have a widget with a countdown timer. I've been using "Text(event.startDate, style: .timer)" to update the widget text. But after updating to iOS 16 this stoped working. Have anyone experienced the same? Dosn't look like its deprecated either…
swiftdev4585
  • 115
  • 1
6
votes
2 answers

iOS 16 + Firebase: The app references non-public selectors determineAppInstallationAttributionWithCompletionHandler:

I am trying to submit native app using Xcode to the App Store. The app is built with Firebase and SwiftUI for iOS 16. The submission finishes with the following warning: The app references non-public selectors in Payload/MyApp.app/MyApp:…
user7289922
  • 181
  • 1
  • 11
5
votes
3 answers

Pseudo Terminal Setup Error ErrorCode: 7 Errno: 6 when trying to build and launch a Swift app on Simulator

I am getting the error below when I try to launch my application on XCode via the iPhone 12 Pro simulator. The full logs are Details Pseudo Terminal Setup Error Domain: IDEPseudoTerminalDomain Code: 7 Failure Reason: ErrorCode: 7 Errno: 6 User…
5
votes
2 answers

TextField(_:text:axis:) breaks keyboard avoidance inside ScrollView in iOS 16

Automatic keyboard avoidance seems to work fine if it's a regular TextField (i.e. one that doesn't expand on an axis), whether or not it is contained in a ScrollView Keyboard avoidance also seems to work with the new TextField(_:text:axis)…
Adam Singer
  • 2,377
  • 3
  • 18
  • 18
5
votes
3 answers

iOS 16.1.1 runtime error: RB query for the extension process state failed

I am working on a project and getting a runtime error when running our app on some colleague's iPhone 11 device(iOS 16.1.1) : [lifecycle] [u 68C8D161-6D2A-412E-A4F2-CEDE8D1C83EF:m (null)] [*PRODUCT_BUNDLE_IDENTIFIER(MARKETING_VERSION)*] RB query…
ChengEn
  • 91
  • 5
5
votes
0 answers

Screen Orientation Rotation in swiftUI in iOS16

I am working on an app which uses viewcontrollers and I am slowly migrating to use views built using SwiftUI. I am working on new swiftUI views, so i am setting UIHostingController as the rootViewController in the SceneDelegate Overall my whole app…
NNN
  • 543
  • 5
  • 14
5
votes
2 answers

Navigation stack yellow warning triangle

I'm attempting to listen for a change in a boolean value & changing the view once it has been heard which it does successfully, however, results in a yellow triangle. I haven't managed to pinpoint the issue but it doesn't seem to have anything to do…
robowarrior
  • 123
  • 6
5
votes
0 answers

SwiftUI iOS 16 NavigationPath inside TabView Warning: NavigationAuthority

I have a TabView and each Tab has it's own NavigationPath which I am handling inside an ObservableObject. @MainActor final class Router: ObservableObject { @Published var homeNavigationPath = NavigationPath() @Published var…
Dan
  • 543
  • 2
  • 13
5
votes
4 answers

Swift / iOS 16 Empty SwiftUI List Background Color

My app is built in SwiftUI and mostly works as is with iOS 16 apart from a couple of design quirks which I'm currently working on a fix for. One of the quirks is the background colours of lists. Previously I have used Introspect to set the color of…
Carl
  • 548
  • 1
  • 4
  • 21
5
votes
3 answers

SwiftUI Scrollable Charts in IOS16

Using the new SwiftUI Charts framework, we can make a chart bigger than the visible screen and place it into a ScrollView to make it scrollable. Something like this: var body : some View { GeometryReader { proxy in …
fcollf
  • 131
  • 1
  • 5
5
votes
2 answers

SwiftUI AppIntents iOS16: How to localize Summary?

Im trying to localize the Summary of my new SwiftUI AppIntent on my Swift project for making new Shortcuts. I am not able to localize the Summary. I have created a AppShortcuts.strings with Localize of English and Spanish languages like in this page…
Adri
  • 51
  • 1
5
votes
1 answer

Fixed range for y-axis in Swift Charts

I want that my y-axis always shows a range from 0-60 even though there are data sets that do not represent the full range. E.g. if I'm showing a data set with values of just 10 and 40 the y-axis range is only from 0-40 instead of 0-60. Any ideas how…
gpichler
  • 2,181
  • 2
  • 27
  • 52
5
votes
1 answer

iOS 16 deprecation of asset.duration

Using Xcode 14.0, iOS 16, Swift 5.7, I get the following deprecation warning due to iOS 16: 'duration' was deprecated in iOS 16.0: Use load(.duration) instead Here is my code: var actualTime: CMTime = CMTimeMake(value: 0, timescale:…
iKK
  • 6,394
  • 10
  • 58
  • 131