Post

Replies

Boosts

Views

Activity

Reply to iOS widget always displaying placeholder on simulator or device
Are you seeing the placeholder representation in the widget on the Home Screen (or the Lock Screen) after you've added it, or when you're about to add it? Here's the comments I have in the various methods in my IntentTimelineProvider: func placeholder(in context: Context) -> EventEntry { // When WidgetKit displays your widget for the first time, it renders the widget's view as a placeholder, which displays a // generic representation of your widget, giving the user a general idea of what the widget shows. WidgetKit calls this // method to request an entry representing the widget's placeholder configuration. In addition, WidgetKit may render your // widget as a placeholder if the user chooses to hide sensitive information on Apple Watch. // For the placeholder, the system automatically redacts all of the widget's content, unless you explicitly mark items with the // unredacted() view modifier in your widget's SwiftUI view. As a result, you may want to provide generic data that fills // out the redacted version. ... } func getSnapshot(for configuration: DynamicEventSelectionIntent, in context: Context, completion: @escaping (EventEntry) -> Void) { // For the snapshot, return a single entry. In general, you want to return the current state of your app. // However, the system also uses the snapshot when displaying your widget in the widget picker. ... } Maybe your content is taking too long to be delivered and displayed? Or perhaps your content needs the .unredacted() modifier on it?
Topic: App & System Services SubTopic: General Tags:
Sep ’22
Reply to SwiftUI 4 navigation bug on iOS 16?
Maybe you need to resign first responder on the text field when you click the "Navigate" link so the keyboard disappears. That might make the text field drop down to its original position (just a guess). Alternatively, you could make the text field first responder whenever the initial view is displayed (so, when running the app, or coming back from the nested view) if it was being edited when you tapped "Navigate".
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’22
Reply to Selling Push Notifications
No. You are trying to monetise push notifications, which are built into the OS. You can certainly perform the processing on a server, but you cannot charge people to receive a push notification with the results of that processing. What does your server return to the app? What 'product' are you trying to charge customers for?
Sep ’22
Reply to xcode 12.4 and iOS 16
Each version of Xcode comes with a certain supported version of the various operating systems. Xcode 12.4 was released in 2020 and supports iOS 14.4. Xcode 13 was released in 2021 and supports iOS 15. Xcode 14 was released in 2022 and supports iOS 16. You could try something like https://github.com/iGhibli/iOS-DeviceSupport to add support for iOS 16, but you might run into issues.
Sep ’22