Swiftpack.co -  krzysztofzablocki/Strongify as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Strongify is a 1-file µframework providing a nicer API for avoiding weak-strong dance.
.package(url: "https://github.com/krzysztofzablocki/Strongify.git", from: "1.3")


1-file µframework that gets rid of weak-strong dancing in Swift.

Basically allows you to go from this:

target.closure = { [weak self, weak other] some, arguments in 
    guard let strongSelf = self, let strongOther = other else { return }
    /// ... code

To this:

target.closure = strongify(weak: self, other) { strongSelf, strongOther, some, arguments in
    /// ... code

Read more


Swift Package Manager

Add .Package(url: "https://github.com/krzysztofzablocki/Strongify.git", majorVersion: 1) to your Package.swift file's dependencies.


Add pod 'Strongify' to your Podfile.


Add github "krzysztofzablocki/Strongify" to your Cartfile.


Strongify is available under the MIT license. See LICENSE for more information.


I've used SwiftPlate to generate xcodeproj compatible with SPM, CocoaPods and Carthage.


Stars: 429
Last commit: 2 weeks 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

2 weeks ago

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