diff --git a/ImagePicker/RecordButton.swift b/ImagePicker/RecordButton.swift index 729bae8..236d1be 100644 --- a/ImagePicker/RecordButton.swift +++ b/ImagePicker/RecordButton.swift @@ -47,13 +47,13 @@ class RecordVideoButton : StationaryButton { private var outerCircleLayer: CALayer private var innerCircleLayer: CALayer - private enum State: String { + private enum LayersState: String { case initial case pressed case recording } - private var layersState: State = .initial + private var layersState: LayersState = .initial required init?(coder aDecoder: NSCoder) { outerCircleLayer = CALayer() @@ -91,7 +91,7 @@ class RecordVideoButton : StationaryButton { setNeedsLayout() } - private func updateCircleLayers(state: State, animated: Bool) { + private func updateCircleLayers(state: LayersState, animated: Bool) { guard layersState != state else { return } layersState = state