Swiftpack.co - Alkenso/SwiftConvenience as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Swift Must Have Tools
.package(url: "https://github.com/Alkenso/SwiftConvenience.git", from: "0.0.3")


Convenient additions to Swift standard library that makes development pleasant.

Brief history

While participating in many projects (mostly macOS) I use the same tools and standard types extensions. Once I've decided stop to copy-paste code from project to project and make single library that covers lots of developer needs in utility code.



  • Bundle
  • FileManager
  • Process
  • Standard Types (URL, Data, UUID, Result, ...)

Low level

  • audit_token_t
  • POSIX stat
  • IOKit error

Utility types

  • CommonError
  • ValueView
  • KeyValue struct
  • Resource (RAII wrapper, smart pointer analog)


  • FileEnumerator (Swift approach for deep enumeration of the file system)


  • Synchronized (thread-safe wrapper around T)
  • Atomic (property wrapper to safely read/assign values from different threads)

Working with String

  • WildcardExpression


You can also find Swift libraries for macOS / *OS development

  • sXPC: type-safe wrapper around NSXPCConnection and proxy object
  • sLaunchctl: register and manage daemons and user-agents
  • sMock: Swift unit-test mocking framework similar to gtest/gmock


Stars: 3
Last commit: 3 days ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

General improvements and refinements
12 weeks ago
  • Refined CommonError and IOKitError
  • Improved Data->POD conversion
  • Minor fixes and improvements

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