614 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
75
views
How to implement long press (minimum duration) for iOS widget buttons?
I've seen apps that have interactive widget buttons where a short tap does nothing, but holding the button for at least 1 second executes the action. This can be configured per button in the widget ...
2
votes
1
answer
133
views
Reloading another iOS widget's timeline from an AppIntent
I’m working with two iOS widgets (WidgetA and WidgetB) that both display the value of a flag stored in SwiftData. Each widget can update the flag by triggering an AppIntent when a button is pressed.
...
Best practices
0
votes
0
replies
28
views
Apple WatchOS: Adopt watchface background for complication
On the California watchface (white) there are two complication slots. The upper one is seemingly not a standard slot and limited to a few Apple-owned apps (Calender, Time, ...). It adopts the (default ...
0
votes
0
answers
58
views
WidgetKit - Is it possible for a WidgetConfigurationIntent Struct to have an extra parameter in its initializer?
Been playing around with AppIntentConfiguration in WidgetKit and was wondering if I can have a parameter being passed in the intent structure? Below is what I'm trying to achieve, but I keep getting ...
3
votes
1
answer
2k
views
How to apply Liquid Glass effect to Widget background in iOS 26?
I'm developing a Home Screen Widget for iOS 26 and trying to apply the new Liquid Glass design system to the widget's background.
Currently, my widget has a solid black background instead of the ...
1
vote
1
answer
82
views
How to make SwiftUI Widget buttons fill their container height when using GeometryReader with calculated row heights?
I'm building an iOS Widget (WidgetKit) with a ×ばつ2 button grid using GeometryReader to calculate row heights. The buttons should fill their
containers completely and have equal heights, like Apple's ...
0
votes
1
answer
108
views
Hide sensitive data on watchOS with WidgetKit
I am looking for a way to hide sensitive information on my Complication, basically whenever the user does not actively look at it. That includes
Always-On state
Locked State (e.g. Watch not on wrist)
...
6
votes
0
answers
807
views
iOS 26 - How to make a Widget using Clear Liquid Glass as background?
The HomeKit and Battery Status widget in iOS 26 has a clear background. However, trying to manipulate the .containerBackground(for: .widget) using the .glassEffect doesn't work.
Does Apple allow ...
0
votes
0
answers
39
views
Text as WidgetKit Control Label on watchOS
I want to show a watchOS control that has a Text as its Label.
I tried achieving this with this code (the provider and action are just placeholders):
StaticControlConfiguration(kind: "codecontrol&...
2
votes
1
answer
117
views
WidgetKit WatchOS accessory Inline Image not displaying
I have an accessoryInline widget (for iPhone LockScreen and Watch complication) and I'd like to display a colored Image inside (for iOS & watchOS).
The image is a small png (like 80x80) with ...
0
votes
0
answers
106
views
How to send Live Activity push token to server (like Airship or OneSignal) if app hasn't been opened for days?
What I Know So Far:
You must call Activity.request(..., pushType: .token) inside the app to create a Live Activity and receive its push token.
The token can be captured using for await activity....
3
votes
1
answer
376
views
On iOS 26 App Does Not Receive Deep Link from Widget When Using widgetAccentedRenderingMode on Image
Summary
When a SwiftUI widget uses a Link containing an Image modified with .widgetAccentedRenderingMode (using any mode except .fullColor), tapping the image on the widget launches the app but does ...
1
vote
0
answers
77
views
How to determine if an inline complication is positioned at the top or bottom slot of the Motion watch face for apple watch complications development?
I'm recently developing watch complications using WidgetKit. How can I determine my inline complications is in top or bottom slot context of Motion watch face for different designing, since the top ...
0
votes
1
answer
84
views
How to provide iOS widgets to Mac Catalyst?
I have a proxy app with an iOS widget extension that works perfectly when run on a Mac when built as 'Designed for iPad'. But recently we decided to make a full 'Mac Catalyst' target for arm64+x86_64 ...
0
votes
0
answers
172
views
Dynamic Options for Configurable Widgets (WidgetKit Swift)
I'm trying to create a widget using the WidgetKit framework. In this part, I'm using Intents along with a DynamicOptionsProvider. As shown in the Medium article below, I want to present multiple ...