Skip to content

Commit

Permalink
Fixes documentation issue for PropertyListSerialization.propertyList …
Browse files Browse the repository at this point in the history
…usage
  • Loading branch information
Josh Kaplan committed Oct 13, 2021
1 parent 5385bb9 commit 8e6839b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ For an external executable, deserialize an info property list as an `NSDictionar
let executableURL = URL(fileUrlWithPath: <# path here #>)
let data = try EmbeddedPropertyListReader.info.readExternal(from: executableURL)
let plist = try PropertyListSerialization.propertyList(from: data,
options: .mutableContainersAndLeaves,
format: nil) as? NSDictionary
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ For an external executable, deserialize an info property list as an `NSDictionar
let executableURL = URL(fileUrlWithPath: <# path here #>)
let data = try EmbeddedPropertyListReader.info.readExternal(from: executableURL)
let plist = try PropertyListSerialization.propertyList(from: data,
options: .mutableContainersAndLeaves,
format: nil) as? NSDictionary
```

Expand Down

0 comments on commit 8e6839b

Please sign in to comment.