CosynPa / TZStackView

UIStackView replica for iOS 7.x and iOS 8.x and support Interface Builder
MIT License
4 stars 5 forks source link

Swift 2.3 build error #4

Closed klwoon closed 7 years ago

klwoon commented 7 years ago
/Users/klwoon/Documents/projects/work/Pods/TZStackView/TZStackView/TZStackView.swift:250:46: error: cannot assign value of type 'TZFuncAnimationDelegate' to type 'CAAnimationDelegate?'
                callbackAnimation.delegate = TZFuncAnimationDelegate { _ in
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/klwoon/Documents/projects/work/Pods/TZStackView/TZStackView/TZStackView.swift:785:74: error: 'Baseline' is unavailable in Swift: Use 'lastBaseline' instead
                constraints += equalAttributes(views: views, attribute: .Baseline)
                                                                         ^~~~~~~~
UIKit.NSLayoutAttribute:16:23: note: 'Baseline' has been explicitly marked unavailable here
    public static var Baseline: NSLayoutAttribute { get }
                      ^

Build with XCode 8 Swift 2.3 failed with these errors. Could you suggest any fix? Thank you.

CosynPa commented 7 years ago

Fixed in swift2.3 branch