             updateTransform()
         }
     }
-    
+
     var height: CGFloat = 0 {
         didSet {
             view.frame.size.height = height

            updateTransform()
        }
    }
    
    var scale: CGFloat = 1 {
        didSet {
            updateTransform()
        }
    }
    
    var rotation: CGFloat = 0 {
        didSet {
            updateTransform()
        }
    }
    
    var background: Item? {
        didSet {
            oldValue?.view.removeFromSuperview()

        renderer.items.append(item)
        item.didSave()
    }

    init(view: UIView = UIView()) {
        self.view = view
    }

    func didSave() {}

    private func updateTransform() {
        var a: CGFloat = 1
        var b: CGFloat = 0
