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
8
votes
1 answer

DatePicker with graphical style breaks layout constraints on iOS 16.0

The following code breaks the layout constraints when running on Xcode-14.0.0-Beta 5 with iOS 16.0 struct ContentView: View { @State var date = Date() var body: some View { DatePicker(selection: $date, displayedComponents:…
Claudiu
  • 485
  • 1
  • 4
  • 17
8
votes
0 answers

Hide navigation bar in iOS16 + xcode 14 beta not working

We use Firebase's Crashlytics and in the last 2 days we've seen a spike in crashes with navigationController?.setNavigationBarHidden on iOS 16 devices. I was able to reproduce the crash after installing Xcode 14.5 I have a view controller (VC1)…
josealvarado111
  • 565
  • 1
  • 9
  • 24
7
votes
1 answer

Extract App Intents Metadata - very slow build step

The app intents extraction from the new AppIntents framework takes a lot of time, even when changes in code don't touch the intents directly. In the build log reasons for this step to happen differ, but mostly it's that "file X changed" and I wonder…
dziobaczy
  • 891
  • 9
  • 17
7
votes
4 answers

Incomplete Swipe-back gesture causes NavigationPath mismanagement

I am looking for solutions to the following bug in my example code below. I have tried to implement the Navigator Pattern with SwiftUI 4 and the iOS 16.0 Navigation API changeset. The example below will compile in Xcode 14.0+ and if run in simulator…
7
votes
3 answers

Toolbar bottom iOS 16 - SwiftUI

I would like to have a bottom toolbar with SwiftUI. The following is working in iOS 15, but not in iOS 16. In iOS 16 the toolbar is not showing. (It's working if I change the placement...) Text("Content") .toolbar { …
Maxime
  • 73
  • 1
  • 5
7
votes
1 answer

How to recreate the iOS 16 Lock Screen Widget Vibrant effect in SwiftUI 4.0?

I am looking for a way to reproduce the "Vibrant" iOS 16 effect that occurs on Lock Screen Widget on iOS 16 because my app should be able to display a preview of the widget while the user is the creation process. Examples: See the 4 round widgets on…
Clement M
  • 709
  • 6
  • 14
7
votes
0 answers

primary action of menu in ios 16 not working

Does anyone know why the primary action of Menus in SwiftUI is not working since iOS 16 beta? Menu { Button { print("action 1") } label: { Text("Action 1") } } label: { Text("Menu") }…
meinharttom
  • 121
  • 4
7
votes
1 answer

How to get an iPad's device name on iOS16?

UIDevice.current.name it's worked if used iOS15, but when I tested on iOS16 (beta3) still return 'iPad' name all the time. See related WWDC 2022 video…
Uthen
  • 627
  • 2
  • 9
  • 17
7
votes
3 answers

Implemented iOS AppIntents don't show in Shortcuts

I'm trying to test out the new AppIntents API that is currently on iOS16 Beta. Looking at the documentation, the implementation seems pretty straight forward, but after implementing it, I'm not seeing my AppIntent in the Shortcuts app. The device is…
Norik
  • 161
  • 1
  • 9
7
votes
2 answers

ITMS-90338: Non-public API usage PROCESSING ERROR - Previously Working

Upon uploading a binary to App Store Connect, I receive this email from Apple: ITMS-90338: Non-public API usage - The app references non-public selectors in [PROJECT NAME HERE]: callWithArguments:, estimatedProgress, frameInfo, getVersion,…
Reanimation
  • 3,151
  • 10
  • 50
  • 88
6
votes
3 answers

How to get rid of "Highlight" context menu item in PDFView?

I'm using PDFKit to render a PDF and I have added custom menus using "UIMenuController". But it is now deprecated from iOS 16 onwards. I remove share、lookup menu items with code below: @available(iOS 13.0, *) open override func buildMenu(with…
Phil
  • 201
  • 1
  • 7
6
votes
1 answer

SwiftUI - IOS 16 NavigationStack - @StateObject init called twice

Description I am trying to adapt my application to the new NavigationStack introduced in IOS 16. I ended up with a strange behaviour when I have a @StateObject variable in one of my views. When I navigate (using the new .navigationDestination()…
Ákos Morvai
  • 171
  • 1
  • 5
6
votes
1 answer

Possible iOS 16 bug in NSLocalizedString passing from Swift to Objective-C

I've encountered what I think is a bug in iOS16: When a localized string is passed from Swift to Objective-C and compared with another identical localized string (defined in Objective-CC), the result can be false and the parameter order can affect…
刘maxwell
  • 187
  • 10
6
votes
1 answer

How to return UISearchController under a title on an iPad with iOS 16?

On iPad with iOS 16 searchController displaying on the right side. Like this: How can I return the searchController's "default" view? Like this:
Kren_DEL
  • 105
  • 1
  • 6
6
votes
2 answers

Safari in iOS 16 autofocusing form elements

I noticed that Safari in new iOS 16.0 autofocuses an input element if: type=number or text pattern=\d* margin-top on containing element is 48px (I did not test the precise cut-off value here) Test page:…
Ellessar
  • 61
  • 5
1 2
3
32 33