From 10a94272a22ea83d040cb7bb9536f71044d6207f Mon Sep 17 00:00:00 2001 From: Rinat Enikeev Date: Tue, 18 Sep 2018 15:05:46 +0500 Subject: [PATCH] rename State to LayersState --- ImagePicker/RecordButton.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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