Questions tagged [ios13]

The iOS13 tag should be used for questions specific to Apple's iOS 13 operating system. General iOS questions should use the iOS tag.

API and Developer Changes

  • Allows users to adopt a dark system-wide appearance called Dark Mode, a darker color palette for all screens, views, menus, and controls.
  • With ARKit 3.0, users are able to create and render 3D scenes using , , and frameworks.

  • iOS 13 makes even more powerful with new conversational shortcuts, deeper customization, and new media playback experiences.

  • On-device machine learning using 3. Core ML 3 supports more advanced machine learning models than ever before.
  • With Create ML (), you can now build machine learning models right on your Mac with zero code.
  • features additional technologies that take advantage of the unique functionality of iPad using the iOS SDK.
  • With a declarative Swift syntax that’s easy to read and natural to write, works seamlessly with new Xcode design tools to keep your code and design perfectly in sync. It enables automatic support for Dynamic Type, Dark Mode, localization, and accessibility.
2125 questions
79
votes
11 answers

Adding a drag gesture in SwiftUI to a View inside a ScrollView blocks the scrolling

So I have a ScrollView holding a set of views: ScrollView { ForEach(cities) { city in NavigationLink(destination: ...) { CityRow(city: city) } .buttonStyle(BackgroundButtonStyle()) …
zh.
  • 1,533
  • 1
  • 14
  • 18
78
votes
3 answers

App delegate methods aren't being called in iOS 13

I am using Xcode 11 and building an app for iOS 13. In a new project I created in Xcode some of the UIApplicationDelegate methods were missing so I added them back into the app delegate file. The new template for a "Single View App" project was…
nevan king
  • 112,709
  • 45
  • 203
  • 241
76
votes
1 answer

iOS 13 - WkWebView: audio stops when in background

I've an app that uses WkWebView to play audio from Soundcloud, on iOS 13 Beta 6 the audio stops when the app is not in foreground, even when Audio is on in Background Modes. When starting the playback this assertion is thrown: Error acquiring…
75
votes
16 answers

How can I check whether dark mode is enabled in iOS/iPadOS?

Starting from iOS/iPadOS 13, a dark user interface style is available, similar to the dark mode introduced in macOS Mojave. How can I check whether the user has enabled the system-wide dark mode?
Tamás Sengel
  • 55,884
  • 29
  • 169
  • 223
74
votes
15 answers

How to get the status bar height in iOS 13?

In iOS 13 UIApplication.shared.statusBarFrame.height warns 'statusBarFrame' was deprecated in iOS 13.0: Use the statusBarManager property of the window scene instead. How do you get the status bar height without using a deprecated API in iOS 13?
Jordan H
  • 52,571
  • 37
  • 201
  • 351
71
votes
16 answers

iOS 13: Swift - 'Set application root view controller programmatically' does not work

I have following code in my AppDelegate.swift to setup root view controller for an iOS application. But it does not work. It follows Target structure (defined under General tab) and ignores this code. (Xcode 11, Swift 5.1, iOS 13) class AppDelegate:…
Krunal
  • 77,632
  • 48
  • 245
  • 261
71
votes
3 answers

How to detect device name in Safari on iOS 13 while it doesn't show the correct user agent?

After Apple's iOS 13 release, I realized window.navigator.userAgent in Safari on iPad iOS 13 is same as on MacOS. Something like this: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0…
Saeid Amanzadeh
  • 713
  • 1
  • 5
  • 7
69
votes
7 answers

'scanHexInt32' was deprecated in iOS 13.0

What is alternate of scanHexInt32 in iOS 13 (Swift 5+)? extension UIColor { //-------------------------------------------- class func hexColor(hex:String) -> UIColor { var cString:String = hex.trimmingCharacters(in:…
Krunal
  • 77,632
  • 48
  • 245
  • 261
66
votes
8 answers

How to set Keyboard type of TextField in SwiftUI?

I can't seem to find any information or figure out how to set the keyboard type on a TextField for SwiftUI. It would also be nice to be able to enable the secure text property, to hide passwords etc. This post shows how to "wrap" a UITextField, but…
Aaron Bertsch
  • 700
  • 1
  • 5
  • 8
65
votes
5 answers

Dark mode launch screen in iOS 13

I've updated my iOS app to work in dark mode on iOS 13 but I am having trouble trying to get the launch screen to look good. Currently it is a bright white screen with the app logo which looks awful in dark mode. I have tried setting the background…
Quinn
  • 7,072
  • 7
  • 39
  • 61
64
votes
16 answers

UICollectionView and SwiftUI?

How to create grid of square items (for example like in iOS Photo Library) with SwiftUI? I tried this approach but it doesn't work: var body: some View { List(cellModels) { _ in Color.orange.frame(width: 100, height: 100) } } List…
Evgeny Mikhaylov
  • 1,696
  • 1
  • 19
  • 25
61
votes
4 answers

Requesting an In App Purchase in iOS 13 fails

I use SwiftyStoreKit to request In App Purchases and get only this error with iOS 13: Error: Optional(Error Domain=ASDErrorDomain Code=507 "Error decoding object" UserInfo={NSLocalizedDescription=Error decoding object,…
Timothy C.
  • 639
  • 1
  • 5
  • 10
59
votes
6 answers

How to make width of view equal to superview in SwiftUI

I have Button struct ContentView : View { var body: some View { HStack { Button(action: {}) { Text("MyButton") .color(.white) .font(Font.system(size: 17)) …
Argas
  • 1,427
  • 1
  • 10
  • 12
58
votes
7 answers

Detecting iOS Dark Mode Change

I read through the documentation regarding: https://developer.apple.com/documentation/appkit/supporting_dark_mode_in_your_interface When the user changes the system appearance, the system automatically asks each window and view to redraw itself.…
andromedainiative
  • 4,414
  • 6
  • 22
  • 34
57
votes
10 answers

iOS 13 - How to login in in-app purchase Sandbox account?

In order to test my in-app purchases with iOS 13 I have to update one of my test devices to iOS 13.1 beta. On iOS 12 and before there was a special Sandbox login in Settings/iTunes & App Store/Sandbox Account: However, after the update to iOS 13…
Andrei Herford
  • 17,570
  • 19
  • 91
  • 225