Skip to content

chenjianlei/LZSwiftDelegate

Repository files navigation

LZSwiftDelegate

CI Status Version License Platform

Installation

LZSwiftDelegate is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'LZSwiftDelegate'

v 0.0.2

在阅读了onevcat的文章之后,放弃了原来0.0.1的方案,之前的方案属于传统的代理方式,完全是OC的思维,没有体现任何Swift的优势。

几个月前刚开始接触Swift的时候,有特意去阅读onevcatKingfisher框架,当时框架中Delegate的使用出于非常懵懂的状态,近期重新回顾,受益匪浅。

Delegate属于Kingfisher中的一个类,为了方便使用,我把它抽离了出来,方便使用。

参考文章

Author

chenjianlei, woshixiaolei@qq.com

License

LZSwiftDelegate is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published