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

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -