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.
ios13
2,125
questions
28
votes
9
answers
20k
views
CNCopyCurrentNetworkInfo with iOS 13
Apple changed some things regarding WiFi with iOS 13. If you want to use CNCopyCurrentNetworkInfo your app needs to have one of the following
Apps with permission to access location
Your app is the ...
11
votes
6
answers
14k
views
Set rootViewController iOS 13
After upgrading Xcode a critical part of my application has stopped working.
When my app launches I run a function to check boolean flags and set the correct rootViewController.
But the code I have ...
0
votes
0
answers
28
views
How to change TurpleView<_VariadicView.Children> to Custom View?
Several Views were received as 'TurpleView<_VariadicView.Children>'.
struct View1: View {
var body: some View {
VStack {
Text("page!")
}
}
}
struct ...
20
votes
4
answers
15k
views
How to trigger UIContextMenuInteraction context menu programmatically?
I have set up an UIButton as the rightBarButtonItem in an UIViewController inside an UINavigationController and associated an iOS13 context menu to it.
Long pressing the button shows the context menu ...
5
votes
3
answers
641
views
iOS 13 isKeyWindow always returns nil
I am wondering why:
UIApplication.shared.windows.first { $0.isKeyWindow }
always returns nil both in the simulator and on device. You can confirm this by putting a break point in viewDidLoad in ...
0
votes
1
answer
116
views
Google Maps shows "Sorry, we have no imagery here" on iOS13
When running on an iPhone SE with iOS 13, Google Maps briefly displays images for about 1 second and then shows the error: "Sorry, we have no imagery here". It happens on all places, and on ...
65
votes
17
answers
71k
views
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....
16
votes
9
answers
14k
views
How do I use TabbedView in SwiftUI?
struct ContentView : View {
var body: some View {
NavigationView {
TabbedView {
PasswordGenerator()
.tabItemLabel {
...
16
votes
5
answers
25k
views
How to align a SwiftUI navigationBarTitle to be centered?
How does one centre a navigation bar title in SwiftUI?
var body: some View {
NavigationView {
.navigationBarTitle("Todo Lists")
}
}
53
votes
12
answers
40k
views
'statusBarOrientation' was deprecated in iOS 13.0 when attempting to get app orientation
Simple put, I was relying on the following code to provide the orientation of the application. This is utilized for several reasons within the application:
Per UX specification, the layout of the ...
34
votes
5
answers
14k
views
application(...continue userActivity...) method not called in ios 13
Hi I'm making ios app using UniversalLink.
Universal Link works fine, but callback method is not called.
My AppDelegate.swift is below.
import UIKit
@UIApplicationMain
class AppDelegate: ...
21
votes
6
answers
8k
views
Any SwiftUI Button equivalent to UIKit's "touch down", i.e. activate button when your finger touches?
For SwiftUI the default button behavior is equivalent to UIKit's "touch up inside", which activates when your finger touches the button then raises while within the bounds of the button.
Is there any ...
19
votes
5
answers
6k
views
`scene(_ scene: UIScene, continue userActivity: NSUserActivity)` doesn't get called when the app is launched after the user clicks on a universal link
Method scene(_ scene: UIScene, continue userActivity: NSUserActivity) doesn't get called when the app is launched after the user clicks on a universal link.
It works fine when already launched app ...
3
votes
3
answers
729
views
Is it possible to source an up-to-date snapshot from an NSFetchedResultsController
As of iOS 13, the easiest way to keep a UITableView in sync with a NSFetchedResultsController seems to be with snapshots.
The NSFetchedResultsController vends a snapshot reference to its delegate ...
9
votes
6
answers
4k
views
Subview have parent's shadow, even with a background
So I just started developing with SwiftUI and I'm running in a small problem. Subviews are also displaying superview's shadow, even if the superview has a background. Does someone know how to fix this?...