<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INPriceRange/init(price:currencyCode:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INPriceRange(im)initWithPrice:currencyCode:"
  },
  "title" : "init(price:currencyCode:)"
}
-->

# init(price:currencyCode:)

Initializes the object with the specified price information.

```
convenience init(price: NSDecimalNumber, currencyCode: String)
```

## Parameters

`price`

The price of the service. This value is used for both the minimum and maximum prices.

`currencyCode`

The ISO 4217 currency code to apply to the price information. You can get a list of possible currency codes using the <doc://com.apple.documentation/documentation/Foundation/NSLocale/isoCurrencyCodes> method of <doc://com.apple.documentation/documentation/Foundation/NSLocale>. For example, the string “USD” corresponds to United States dollars.

## Return Value

An initialized price range object or `nil` if the object could not be created.

## Discussion

This method sets the [`minimumPrice`](/documentation/Intents/INPriceRange/minimumPrice) and [`maximumPrice`](/documentation/Intents/INPriceRange/maximumPrice) properties to the value in the `price` parameter.

---

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)