> ## Content Index
> Fetch the complete content index at: https://developerinsider.co/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to create a Strongly Typed Info.plist?
- URL: https://developerinsider.co/how-to-create-a-strongly-typed-info-plist/
- Published: 2020-05-31T05:05:14.000Z
- Updated: 2020-12-05T11:06:48.000Z
- Author: Vineet Choudhary
- Tags: Tips, Xcode, iOS, Info.plist

You can easily access `info.plist` strongly typed by create a struct this way -

```swift
struct InfoPlist<T> {
    static func get(for key: String) -> T? {
        return  Bundle.main.infoDictionary?[key] as? T
    }
    
    static subscript(key: String) -> T? {
        return get(for: key)
    }
}

```

Now you can use above `InfoPlist<T>` struct like this -

```swift
let bundleIdentifier = InfoPlist<String>["CFBundleDisplayName"]
```