Debug flags for CATransaction; formatted code
Added import UIKit for Swift