Post

Replies

Boosts

Views

Activity

Why is applicationWillEnterForeground called on first launch when using AppIntent with openAppWhenRun = true?
Hello, I’ve implemented a feature in my app using AppIntent. When the app is not running in the background and is launched for the first time via a shortcut, both application:didFinishLaunchingWithOptions: and applicationWillEnterForeground: are called. Normally, on the first launch, applicationWillEnterForeground: is not invoked. However, this behavior seems to occur only when the app is launched through a shortcut. I’d like to understand why applicationWillEnterForeground: is being called in this scenario. For reference, the AppIntent has openAppWhenRun set to true. Thank you in advance for your help!
0
0
139
4d
Why is applicationWillEnterForeground called on first launch when using AppIntent with openAppWhenRun = true?
Hello, I’ve implemented a feature in my app using AppIntent. When the app is not running in the background and is launched for the first time via a shortcut, both application:didFinishLaunchingWithOptions: and applicationWillEnterForeground: are called. Normally, on the first launch, applicationWillEnterForeground: is not invoked. However, this behavior seems to occur only when the app is launched through a shortcut. I’d like to understand why applicationWillEnterForeground: is being called in this scenario. For reference, the AppIntent has openAppWhenRun set to true. Thank you in advance for your help!
3
0
152
4d
[iOS 16] If the modalPresentationStyle is .fullScreen, there is a problem with the scrollView cursor position on the PHPickerViewController.
Hi! I have a problem with PHPickerViewController presenting. If the modal Presentation Style is .fullScreen, there is a problem with the scrollView cursor position on the PHPickerView Controller. Scroll is not located at the top. So when the VC first appears, the top row of pictures is cut off. Here's my code import UIKit import PhotosUI class ViewController: UIViewController {   override func viewDidLoad() {     super.viewDidLoad()     // Do any additional setup after loading the view.           let config = PHPickerConfiguration(photoLibrary: .shared())     let picker = PHPickerViewController(configuration: config)     picker.modalPresentationStyle = .fullScreen     self.present(picker, animated: true)   } } And screenshot when it is presented to .fullscreen. As you can see in the red square, you can see that part of the picture is cut off. Is this an OS bug? Or is it intended? I'd appreciate it if you could check it.
0
3
714
Aug ’22