uicollectionview - Implement layoutAttributesClass() in Swift 3 -
i writing custom collection view layout in swift , xcode 8. tried implementing custom collection view layout attributes following function
override class func layoutattributesclass() -> anyclass { return circularcollectionviewlayoutattributes.self }
but error 'method not override method superclass'. appreciated.
you should use var
instead of func in swift 3:
override class var layoutattributesclass: anyclass { // ... }
Comments
Post a Comment