jkpang/PPBadgeView

swift版本兼容

youlianchun opened this issue · 5 comments

啥时候进行版本迁移? 'Self' is only available in a protocol or as the result of a method in a class;

你使用的Swift是什么版本,PPBadgeViewSwift 2.1.0在Swift 4.1环境下编译没有问题 @youlianchun

最新的,xcode10下,应该是swift4.2

jlaws commented

XCode 10 support requires line 36 of PPBadgeLabel to add the required keyword. Can we get an updated podspec with the fix now that the Xcode 10 GM is out? Thanks for the great library!

@jlaws I have submit a pull request #15

PPBadgeViewSwift release v2.2.0, support Xcode10 and Swift4.2,Thanks for feedback! @jlaws @youlianchun

Thanks @12789 for pull request.

image