My widget requests server data updates in getTimeline to refresh information. But if the server API returns an error and I don't execute the completion callback, will this cause any problems?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Issue Report
1.Multiple instances of the same widget from one app were added,
but only one fails to display while others work normally.
2.Sometimes the widget displays blank on iOS 18.3.2
Technical Context
Occurs intermittently
Specific to iOS version 18.3.2
Widget content fails to render
What are the model identifiers for the iPhone 16 Pro and iPhone 16 Pro Max?
static func getiPhoneType() -> String {
var systemInfo = utsname()
uname(&systemInfo)
let machineMirror = Mirror(reflecting: systemInfo.machine)
let identifier = machineMirror.children.reduce("") { identifier, element in
guard let value = element.value as? Int8, value != 0 else { return identifier }
return identifier + String(UnicodeScalar(UInt8(value)))
}
return identifier
}
Does anyone have a real device to run the code and provide the information for the iPhone 16 Pro and iPhone 16 Pro Max?
Using an iPhone 16 Pro Max, running [UIApplication sharedApplication].windows.lastObject.windowScene.statusBarManager.statusBarFrame.size.height in Xcode 15 returns a result of 44, causing UI display issues for applications that rely on the status bar height for calculations.
However, using Xcode 16, the same code returns a height of 54, and the UI displays correctly.
Is this an Apple
Please acknowledge this bug, Apple.
In iOS 18, when navigating from Page A (with a red navigation bar background color) to Page B, and Page B hides the navigation bar, upon returning to Page A, the background color of the navigation bar appears white (seemingly transparent).
The navigation bar background for the share button should be red.
Topic:
UI Frameworks
SubTopic:
UIKit
the application icon turns black in iOS 18's dark mode, resembling a ghost. Therefore, we would like to understand how Apple processes the background of app icons to turn them black in dark mode.
My request is as follows:
I would like to understand the color change principle of app icons in dark mode.
Without using Xcode 16, how can we ensure compatibility so that users with iOS 18 can see the normal icon?