diff --git a/Source/BottomView/BottomContainerView.swift b/Source/BottomView/BottomContainerView.swift index 64bf4443..421e2619 100644 --- a/Source/BottomView/BottomContainerView.swift +++ b/Source/BottomView/BottomContainerView.swift @@ -20,7 +20,7 @@ class BottomContainerView: UIView { lazy var borderPickerButton: UIView = { let view = UIView() - view.backgroundColor = UIColor.clearColor() + view.backgroundColor = .clearColor() view.layer.borderColor = UIColor.whiteColor().CGColor view.layer.borderWidth = ButtonPicker.Dimensions.borderWidth view.layer.cornerRadius = ButtonPicker.Dimensions.buttonBorderSize / 2 diff --git a/Source/BottomView/ButtonPicker.swift b/Source/BottomView/ButtonPicker.swift index 57c38aba..6bf6b942 100644 --- a/Source/BottomView/ButtonPicker.swift +++ b/Source/BottomView/ButtonPicker.swift @@ -53,7 +53,7 @@ class ButtonPicker: UIButton { // MARK: - Configuration func setupButton() { - backgroundColor = UIColor.whiteColor() + backgroundColor = .whiteColor() layer.cornerRadius = Dimensions.buttonSize / 2 addTarget(self, action: "pickerButtonDidPress:", forControlEvents: .TouchUpInside) } diff --git a/Source/CameraView/CameraView.swift b/Source/CameraView/CameraView.swift index b23802f5..a8f88135 100644 --- a/Source/CameraView/CameraView.swift +++ b/Source/CameraView/CameraView.swift @@ -22,7 +22,7 @@ class CameraView: UIViewController { beginSession() } - view.backgroundColor = UIColor.redColor() + view.backgroundColor = .redColor() } // MARK: - Camera actions diff --git a/Source/ImagePickerController.swift b/Source/ImagePickerController.swift index 964dfdda..0bf99e8d 100644 --- a/Source/ImagePickerController.swift +++ b/Source/ImagePickerController.swift @@ -65,7 +65,7 @@ public class ImagePickerController: UIViewController { public override func viewDidLoad() { super.viewDidLoad() - view.backgroundColor = UIColor.whiteColor() + view.backgroundColor = .whiteColor() [topView, cameraController.view, galleryView, bottomContainer].map { self.view.addSubview($0) }