         
         switch textPosition {
         case .center:
-            label.frame = contentView.bounds
+            positionLabelWithinFrame(frame: contentView.bounds)
         case .centerInView(let viewNumber):
             if let view = views[viewNumber] {
-                positionLabelInCenterOfView(view)
+                positionLabelWithinFrame(frame: view.frame)
             }
         case .aboveView(let viewNumber):
             if let view = views[viewNumber] {

        
        // Textfield
        label.text = "Test text"
        label.textAlignment = .center
        label.numberOfLines = 0
        self.contentView.addSubview(label)
        
        self.backgroundColor = UIColor.clear

        textPosition = item.textPosition
        label.text = item.text
        label.superview?.bringSubview(toFront: label)
        
        setNeedsLayout()
        layoutIfNeeded()
    }
