by krzysztofzablocki

krzysztofzablocki /Strongify

Strongify is a 1-file µframework providing a nicer API for avoiding weak-strong dance.

422 Stars 15 Forks Last release: about 3 years ago (1.2) MIT License 14 Commits 3 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


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


.Package(url: "", majorVersion: 1)
to your Package.swift file's dependencies.



pod 'Strongify'
to your Podfile.


Add github

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.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.