Swiftpack.co -  ReactorKit/WeakMapTable as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
A weak-to-strong map table
.package(url: "https://github.com/ReactorKit/WeakMapTable.git", from: "1.2.0")


Swift CocoaPods Build Status CodeCov

A weak-to-strong map table. It is inspired by NSMapTable but guarantees thread safety and deals better with weak references. NSMapTable.weakToStrongObjects() doesn't free the value object when the key object is deallocated but WeakMapTable does.


public func value(forKey key: Key) -> Value?
public func value(forKey key: Key, default: @autoclosure () -> Value) -> Value
public func forceCastedValue<T>(forKey key: Key, default: @autoclosure () -> T) -> T
public func setValue(_ value: Value?, forKey key: Key)



pod 'WeakMapTable'


WeakMapTable is under MIT license. See the LICENSE file for more info.


Stars: 19
Last commit: 1 week 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.

Release Notes

41 weeks ago
  • Support for SPM in Xcode 12 (#1, @yusuga)

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