---
title: WidgetLocation
framework: widgetkit
role: symbol
role_heading: Structure
path: widgetkit/widgetlocation
---

# WidgetLocation

Values that indicate different widget locations.

## Declaration

```swift
struct WidgetLocation
```

## Mentioned in

Preparing widgets for additional platforms, contexts, and appearances

## Topics

### Specifying a location style

- [carPlay](widgetkit/widgetlocation/carplay.md)
- [iPhoneWidgetsOnMac](widgetkit/widgetlocation/iphonewidgetsonmac.md)
- [homeScreen](widgetkit/widgetlocation/homescreen.md)
- [lockScreen](widgetkit/widgetlocation/lockscreen.md)
- [smartStack](widgetkit/widgetlocation/smartstack.md)
- [standBy](widgetkit/widgetlocation/standby.md)
- [watchFace](widgetkit/widgetlocation/watchface.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Layout and presentation

- [Supporting additional widget sizes](widgetkit/supporting-additional-widget-sizes.md)
- [Displaying the right widget background](widgetkit/displaying-the-right-widget-background.md)
- [Optimizing your widget for accented rendering mode and Liquid Glass](widgetkit/optimizing-your-widget-for-accented-rendering-mode-and-liquid-glass.md)
- [Adding StandBy and CarPlay support to your widget](widgetkit/adding-standby-and-carplay-support-to-your-widget.md)
- [WidgetRenderingMode](widgetkit/widgetrenderingmode.md)
- [WidgetAccentedRenderingMode](widgetkit/widgetaccentedrenderingmode.md)
- [AccessoryWidgetBackground](widgetkit/accessorywidgetbackground.md)
