I am writing a custom layout for collections view in swift and xcode 8. I tried to implement the layout attributes of custom collections with the following function
override class func layoutAttributesClass() -> AnyClass { return CircularCollectionViewLayoutAttributes.self }
But I get the error "The method does not cancel any method from its superclass." Any help is greatly appreciated.
source share