I am building a watchOS 10 app with widgets, and I can't find a way to distinguish between a widget on a watchface vs. in a smart stack. Both have family = .accessoryRectangular, but each have a different expectation, the watchface widgets are usually more minimal, while the smart stack widgets have a full color background.
watchOS 10 - Possible to distinguish between widget on a watchface vs. in a smart stack?
206 Views Asked by Tomáš Kafka At
1
There are 1 best solutions below
Related Questions in WATCHOS
- Issue with Xcode Target and settings for Apple Watch App
- How can I create an animation like WhatsApp archive button spawn animation with SwiftUI on watchOS?
- Deep links in AppleWatch
- SwiftUI: Perform a different action when clicking the area around a button
- Simulate HealthKit Data on WatchOS for Apple Watch
- hide indicators for TabView when set vertically
- WatchOS companion app Builds successfully but gives WCSessionDelegate error when Archiving
- Error when building Siri Intent on Apple Watch
- NavigationStack and binding to a selection
- WatchOS app launched by tapping an associated file
- Google Fit API Alternative
- How to migrate WidgetKit extensions from dual-target to single-target watchOS app?
- How to detect touch inputs in SKScene on watchOS SpriteKit?
- Two Apple Watch Companion Targets possible?
- Button (.primaryAction in Toolbar) is not displayed correctly in scrollview on two specific Watch (watchOS) devices
Related Questions in WIDGETKIT
- Display coredata value in widgetkit - SwiftUI
- XCode 15.3 Constantly Builds for Preview
- SwiftUI Widget Previews have a padding in iOS 17 / Xcode 15
- WidgetConfigurationIntent @Parameter sometimes cannot get a value
- How to migrate WidgetKit extensions from dual-target to single-target watchOS app?
- Is it possible to launch a dialog directly from a widget through AppIntent? (IOS 17)
- How to Achieve Precise Updates with getTimeline in iOS Widget Development
- WidgetKit display realtime countdown in "x min" format?
- Migrate default data from UserDefaults.standard to UserDefaults(suitName:)
- "Prompt Label" Custom Intent localization not working in iOS 17
- Watch complication memory crash - EXC_RESOURCE
- WidgetKit iOS 17 - getCurrentConfigurations returned configuration is nil
- Wrong icon for Widget Extension scheme after rename
- SectorMark is not updating its color (ONLY in Widget) according to the color scheme
- SwiftUI, SwiftData, WidgetKit - Missing 'previewContext' modifier
Related Questions in WATCHOS-10
- Two Apple Watch Companion Targets possible?
- Horizontally align with clock on watchOS 10
- Uploading standalone WatchOS app to Apple Store without iOS companion app
- Is it possible to create the same apple watch complication with support of watchOS 9 and SmartStack together?
- WKInterfaceController title alignment change on watchOS 10
- Apple Watch inline complication doesn't show my custom icon
- Has WKExtendedRuntimeSession changed the way timers work?
- watchOS 10 - Possible to distinguish between widget on a watchface vs. in a smart stack?
- Control over font in WidgetKit .widgetLabel?
- Image with white background causes watchOS system clock to disappear
- How to hide the dismiss button (x) when presenting a .sheet in watchOS?
- WidgetKit watchOS 10 .accessoryCorner cannot figure out how to color a Gauge?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It seems like
is the only flag that can distinguish these (true in smart stack, false on the watchface). Found in https://developer.apple.com/videos/play/wwdc2023/10027/