---
title: "init(maximumPrice:currencyCode:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/inpricerange/init(maximumprice:currencycode:)"
---

# init(maximumPrice:currencyCode:)

Initializes the object with the specified maximum price information.

## Declaration

```swift
init(maximumPrice: NSDecimalNumber, currencyCode: String)
```

## Parameters

- `maximumPrice`: The maximum price value. This value is assigned to the doc://com.apple.sirikit/documentation/Intents/INPriceRange/maximumPrice property.
- `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

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

## Discussion

Discussion This method does not assign a value to the minimumPrice property.

## See Also

### Creating a Price Range Object

- [init(price:currencyCode:)](intents/inpricerange/init(price:currencycode:).md)
- [init(firstPrice:secondPrice:currencyCode:)](intents/inpricerange/init(firstprice:secondprice:currencycode:).md)
- [init(minimumPrice:currencyCode:)](intents/inpricerange/init(minimumprice:currencycode:).md)
