Swiftpack.co - orchetect/PListKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by orchetect.
orchetect/PListKit 2.0.2
Swift library for easily reading/writing plist (Property List) files.
⭐️ 23
🕓 3 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/orchetect/PListKit.git", from: "2.0.2")


CI Build Status Platforms - macOS 10.10+ | iOS 9+ | tvOS 9+ | watchOS 2+ | visionOS 1+ Swift 5.3-5.9 Xcode 13-15 License: MIT

A multiplatform Swift library bringing functional methods and type safety to .plist (Property List) files.


The challenges that Apple's standard PropertyListSerialization presents:

  1. Lack of type safety which allows the inadvertent injection of incompatible value types, which can lead to unexpected errors when saving a plist file later on, and are difficult to diagnose
  2. Root-level dictionary access only, making traversal of nested dictionaries very cumbersome
  3. Deals in NS value types which is not very Swifty and requires extra boilerplate at every interaction

PListKit solves these issues by:

  1. Acting as a safe and convenient wrapper for PropertyListSerialization
  2. Providing clean functional syntax for
    • easily manipulating nested keys and values in dictionary trees
    • loading and saving plist files
  3. Dealing in native Swift value types for keys and values
  4. Preventing the inadvertent use of incompatible value types to avoid unexpected errors due to lack of type safety


The library is available as a Swift Package Manager (SPM) package.

To add PListKit to your Xcode project:

  1. Select File → Swift Packages → Add Package Dependency
  2. Add package using https://github.com/orchetect/PListKit as the URL.


See the online documentation or view it in Xcode's documentation browser by selecting the Product → Build Documentation menu.



Coded by a bunch of 🐹 hamsters in a trenchcoat that calls itself @orchetect.


Licensed under the MIT license. See LICENSE for details.


Contributions are welcome. Feel free to post an Issue to discuss.

This library was formerly known as OTPList.


Stars: 23
Last commit: 3 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

3 weeks ago
  • Fixed bug when setting an array nested within a dictionary (#9)
  • Updated unit tests

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics