<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macOS: 15.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/SubscriptionStoreControlStyleConfiguration/PickerOption/isSelected",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "StoreKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:17_StoreKit_SwiftUI012SubscriptionA25ControlStyleConfigurationV12PickerOptionV10isSelectedSbvp"
  },
  "title" : "isSelected"
}
-->

# isSelected

A Boolean value that indicates whether the picker option is in a selected state.

```
let isSelected: Bool
```

## Discussion

Use the [`isSelected`](/documentation/StoreKit/SubscriptionStoreControlStyleConfiguration/PickerOption/isSelected) property to display a selection indicator, such as a checkmark, in its correct state. The following code example shows a checkmark when [`isSelected`](/documentation/StoreKit/SubscriptionStoreControlStyleConfiguration/PickerOption/isSelected) is true:

```swift
SubscriptionPickerOption(option) { pickerOption in 
HStack {
    Text(pickerOption.displayName)
    Spacer()
    Image(systemName: "checkmark")
        .opacity(pickerOption.isSelected ? 1 : 0)
    }
}
```

The [`SubscriptionStorePicker`](/documentation/StoreKit/SubscriptionStorePicker) automatically updates the picker’s selection state as customers interact with your picker. However, the [`SubscriptionStorePicker`](/documentation/StoreKit/SubscriptionStorePicker) doesn’t display selection indicators. Your app needs to display selection indicators in the picker option label.

Use the [`SubscriptionStoreControlStyleConfiguration.PickerOption`](/documentation/StoreKit/SubscriptionStoreControlStyleConfiguration/PickerOption) value, which represents the properties of a subscription picker option’s label, to display the selection indicator.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)