         currentAttribute.zIndex = 2000
       }
       
-      currentAttribute.frame = CGRectMake(frame.origin.x, y, frame.size.width, height)
+      currentAttribute.frame = CGRect(x: frame.origin.x, y: y, width: frame.size.width, height: height)
       allItems.append(currentAttribute)
     }
     

    return attributes
  }
  
  public override func layoutAttributesForSupplementaryViewOfKind(elementKind: String, atIndexPath indexPath: NSIndexPath) -> UICollectionViewLayoutAttributes? {
    var attributes = initialLayoutAttributesForAppearingSupplementaryElementOfKind(elementKind, atIndexPath: indexPath as NSIndexPath)
    if attributes != nil && elementKind == IOStickyHeaderParallaxHeader {
        
      attributes = IOStickyHeaderFlowLayoutAttributes(forSupplementaryViewOfKind: elementKind, withIndexPath: indexPath as NSIndexPath)
    }
    
    return attributes
  }
  
  public func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]? {
    var adjustedRec = rect
    adjustedRec.origin.y -= (self.parallaxHeaderReferenceSize?.height)!
    
    let attributes = layoutAttributesForElements(in: adjustedRec)
    var allItems = [UICollectionViewLayoutAttributes]()
    
    attributes?.forEach { itemAttributes in

    
    origin.y = maxY
    
    attributes.frame = CGRect(x: origin.x, y: origin.y, width: attributes.frame.size.width, height: attributes.frame.size.width)
  }
}
