XCode 10 GM and Swift 4.2 fails to compile
jlaws opened this issue · 4 comments
PPBadgeViewSwift v2.2.0 still fails to build in the latest Xcode with Swift 4.2
/Users/joelaws/Workspace/kratos/Pods/PPBadgeViewSwift/PPBadgeView/swift/PPBadgeLabel.swift:72:27: 'NSAttributedStringKey' has been renamed to 'NSAttributedString.Key'
/Users/joelaws/Workspace/kratos/Pods/Foundation.NSAttributedStringKey:2:18: 'NSAttributedStringKey' was obsoleted in Swift 4.2
/Users/joelaws/Workspace/kratos/Pods/PPBadgeViewSwift/PPBadgeView/swift/UIView+PPBadgeView.swift:178:22: 'bringSubview(toFront:)' has been renamed to 'bringSubviewToFront(_:)'
/Users/joelaws/Workspace/kratos/Pods/UIKit.UIView:17:15: 'bringSubview(toFront:)' was obsoleted in Swift 4.2
I do not have Xcode10 and Swift4.2 environment yet. I will release it to CocoaPods after upgrading in a few days. You can install it in this way now: pod 'PPBadgeViewSwift', :git => 'https://github.com/jkpang/PPBadgeView.git', :tag => '2.2.1'
@jlaws
2.2.1 still has this issue: UIView+PPBadgeView.swift:178:22: 'bringSubview(toFront:)' has been renamed to 'bringSubviewToFront(_:)'
I fixed it in my fork.
Works great, thank you!