Skip to content

Commit

Permalink
Merge pull request #53 from rinat-enikeev/fix-ambiguous-state-iOS12
Browse files Browse the repository at this point in the history
rename State to LayersState
  • Loading branch information
tankista committed Sep 20, 2018
2 parents cabbc4f + 10a9427 commit ccfbbff
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 ccfbbff

Please sign in to comment.