LZSwiftDelegate is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'LZSwiftDelegate'
在阅读了onevcat的文章之后,放弃了原来0.0.1的方案,之前的方案属于传统的代理方式,完全是OC的思维,没有体现任何Swift的优势。
几个月前刚开始接触Swift的时候,有特意去阅读onevcatKingfisher
框架,当时框架中Delegate
的使用出于非常懵懂的状态,近期重新回顾,受益匪浅。
Delegate
属于Kingfisher
中的一个类,为了方便使用,我把它抽离了出来,方便使用。
chenjianlei, woshixiaolei@qq.com
LZSwiftDelegate is available under the MIT license. See the LICENSE file for more info.