CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

Strongify 1.2

Strongify 1.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Krzysztof Zabłocki.



  • By
  • Krzysztof Zablocki

Strongify

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

Installation

Swift Package Manager

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

License

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

Attributions

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