المشاريع
عرض على GitHub
krzysztofzablocki/Strongify
حول
Strongify هو µframework مكوّن من ملف واحد، ويوفر API أسهل لتجنب نمط weak-strong dance.
مشاريع أخرىالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- -١
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصل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
}
Installation
Swift Package Manager
Add .Package(url: "https://github.com/krzysztofzablocki/Strongify.git", majorVersion: 1) to your Package.swift file's dependencies.
CocoaPods
Add pod 'Strongify' to your Podfile.
Carthage
Add github "krzysztofzablocki/Strongify" to your Cartfile.
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.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…