521 questions
0 votes
0 answers
140 views
App migrated from SwiftUI to UIKit does not call any SceneDelegate methods, shows blank screen
Background: The situation described is very similar to those highlighted in the following questions on SO and Apple Developer forums. Unfortunately, after trying the suggested solutions, as well as ...
0 votes
0 answers
39 views
how we can dismiss default call sheet(which used to make default call in iOS) and push a controller on complition of dismiss
want to dismiss defauls call sheet without any tap on view and push controller of dismiss complition I am not clear how I can dismiss this and I am able to find actual name of this controller or etc.
3 votes
1 answer
598 views
Trigger onOpenUrl with specific url programmatically within SwiftUI App
Circumstances I've got a SwiftUI App with deep link support. When .onOpenUrl is triggered, the app navigates to a specific screen. Every view can listen to that deep link url and therefore has all ...
0 votes
1 answer
316 views
applicationDidBecomeActive get called when iPhone's Lock Screen button is pressed
In my app , I check [UIPasteboard generalPasteboard].changeCount in - (void)applicationDidBecomeActive:(UIApplication *)application But I found that every time I press iPhone's Lock Screen button , ...
1 vote
0 answers
926 views
iOS universal links not entering in UIApplicationDelegate callback
I'm trying to use universal links to be detected in a callback in an app developed in SwiftUI. I think all the settings are ok, including the AASA file, capability in the app with applinks: join-...
0 votes
1 answer
192 views
iOS. Interface orientation on launch
I have an app that supports both portrait and landscape. So in Info.plist / Project Settings I specify both orientations. In my UIViewController I override supportedInterfaceOrientations to return ....
2 votes
2 answers
7k views
How to handle a file shared from another app to my own iOS app?
I follow the previous question (Swift , Xcode, iOS - How to handle a file sent with 'Open in...' from another app to my own app) to integrate the function to Open in... in my app. I would like ...
8 votes
1 answer
6k views
SwiftUI - 'windows' was deprecated in iOS 15.0: Use UIWindowScene.windows
I'm having the following code block: struct StackOverflow: View { var body: some View { Text("Hello, World!") .padding(.bottom,UIApplication.shared.windows.first?....
5 votes
0 answers
726 views
SceneDelegate.init() is being called when killing the app
I am experiencing some strange behavior in my app. Sometimes, when users kill the app, SceneDelegate.init() and scene(_:willConnectTo:options:) are called again which causes running the app init flow ...
3 votes
0 answers
479 views
iOS - Opening files with custom extension from external apps into my app not working
My Swift app should open files with a custom extension, let's say it is 'ext'. In the info.plist file it's like <key>UTExportedTypeDeclarations</key> <array> <dict> ...
0 votes
1 answer
1k views
Is it possible to add an AppDelegate to an independent watchOS SwiftUI app?
I am trying to add an AppDelegate to a standalone watchOS SwiftUI app (no companion iOS app) as indicated in here, but I can't seem to resolve the issue Cannot find type 'UIApplicationDelegate' in ...
0 votes
1 answer
87 views
Error during trying opening file in predefined app
I'm trying to open a file directly in the predefined app. I have this code running but I keep getting an error... func pushFile(_ destination: URL) { let appURL = destination DispatchQueue....
2 votes
1 answer
2k views
How to keep an app from quitting after closing its window on Mac Catalyst?
I started a sample iOS app in order to explore SwiftUI; at some point I thought enabling Mac support would be a fun thing try, and surprisingly, I have good result with little to no additional code. ...
1 vote
0 answers
364 views
SceneDelegate vs AppDelegate
Hi I want to check if the user use AppDelegate or SceneDelegate as I want to swizzle functions like DidBecomeActive, so how to check it? I was thinking of checking this by detecting if the user use ...
0 votes
0 answers
564 views
Call RESTful API while application in background state for indefinite time
I want to call a post method every 60 seconds later while application is in background mode.My objective is to store user location and send it to my server.So far, for test purpose I have used ...