        
        var prevCardPart: UIView = contentView
        var padding: CGFloat = 0
        
        for cardPart in cardParts {
            cardPart.view.translatesAutoresizingMaskIntoConstraints = false
            padding += cardPart.margins.top
            
            if let _ = cardPart.viewController {
                // TODO add support for cardParts implemented as view controllers
                print("Viewcontroller card parts not supported in collection view cells")
            } else {
                contentView.addSubview(cardPart.view)
            }
            