Skip to content

Commit

Permalink
rename State to LayersState
Browse files Browse the repository at this point in the history
  • Loading branch information
rinat-enikeev committed Sep 18, 2018
1 parent cabbc4f commit 10a9427
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ImagePicker/RecordButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 10a9427

Please sign in to comment.