Skip to content

Commit

Permalink
call to method 'onEnded' in closure requires explicit 'self.' to make…
Browse files Browse the repository at this point in the history
… capture semantics explicit
  • Loading branch information
mroffmix committed Oct 19, 2020
1 parent b390624 commit 6db36f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SwipeableView/View/SwipeableView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ public struct SwipeableView<Content: View>: View {
.frame(maxWidth: .infinity, maxHeight: .infinity)
.offset(x: self.viewModel.dragOffset.width)

.onTapGesture(count: 1, perform: { toCenterWithAnimation()})
.gesture( DragGesture(minimumDistance: 10.0, coordinateSpace: .local).onChanged(onChanged(value:)).onEnded(onEnded(value:)))
.onTapGesture(count: 1, perform: { self.toCenterWithAnimation()})
.gesture( DragGesture(minimumDistance: 10.0, coordinateSpace: .local).onChanged(self.onChanged(value:)).onEnded(self.onEnded(value:)))
}

}
Expand Down

0 comments on commit 6db36f4

Please sign in to comment.