Skip to content

Commit

Permalink
Contextual closure type '() -> Void' expects 0 arguments, but 1 was u…
Browse files Browse the repository at this point in the history
…sed in closure body

refs artemkrachulov#41
  • Loading branch information
ykws committed Jan 18, 2022
1 parent b818f74 commit c1386aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions AKImageCropperView/AKImageCropperView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ open class AKImageCropperView: UIView, UIScrollViewDelegate, UIGestureRecognizer
savedProperty.save(scrollView: scrollView)
cancelZoomingTimer()

let _animations: () -> Void = { _ in
let _animations: () -> Void = {

self.layoutSubviews()

Expand Down Expand Up @@ -504,7 +504,7 @@ open class AKImageCropperView: UIView, UIScrollViewDelegate, UIGestureRecognizer

isAnimation = true

let _animations: () -> Void = { _ in
let _animations: () -> Void = {

self.layoutSubviews()

Expand Down Expand Up @@ -570,7 +570,7 @@ open class AKImageCropperView: UIView, UIScrollViewDelegate, UIGestureRecognizer
self.angle = angle
savedProperty.save(scrollView: scrollView)

let _animations: () -> Void = { _ in
let _animations: () -> Void = {

self.rotateView.transform = CGAffineTransform(rotationAngle: CGFloat(angle))
self.layoutSubviews()
Expand Down Expand Up @@ -610,7 +610,7 @@ open class AKImageCropperView: UIView, UIScrollViewDelegate, UIGestureRecognizer
angle = 0
cancelZoomingTimer()

let _animations: () -> Void = { _ in
let _animations: () -> Void = {

self.rotateView.transform = CGAffineTransform.identity

Expand Down

0 comments on commit c1386aa

Please sign in to comment.