---
title: "object(forInfoDictionaryKey:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/bundle/object(forinfodictionarykey:)"
---

# object(forInfoDictionaryKey:)

Returns the value associated with the specified key in the receiver’s information property list.

## Declaration

```swift
func object(forInfoDictionaryKey key: String) -> Any?
```

## Parameters

- `key`: A key in the receiver’s property list.

## Return Value

Return Value The value associated with key in the receiver’s property list (Info.plist). The localized value of a key is returned when one is available.

## Discussion

Discussion Use of this method is preferred over other access methods because it returns the localized value of a key when one is available.

## See Also

### Getting bundle information

- [bundleURL](foundation/bundle/bundleurl.md)
- [bundlePath](foundation/bundle/bundlepath.md)
- [bundleIdentifier](foundation/bundle/bundleidentifier.md)
- [infoDictionary](foundation/bundle/infodictionary.md)
