Skip to content

Commit f40b37a

Browse files
authored
Rename API #2
1 parent 7b4df27 commit f40b37a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ScrollEdgeControl/Core/ScrollEdgeControl.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public protocol ScrollEdgeActivityIndicatorViewType: UIView {
1616
public final class ScrollEdgeControl: UIControl {
1717

1818
public struct Handlers {
19-
public var onDidBeginRefreshing: (ScrollEdgeControl) -> Void = { _ in }
19+
public var onDidActivate: (ScrollEdgeControl) -> Void = { _ in }
2020
}
2121

2222
/**
@@ -517,7 +517,7 @@ public final class ScrollEdgeControl: UIControl {
517517
DispatchQueue.main.asyncAfter(deadline: .now() + 0.2) { [weak self] in
518518
guard let self = self else { return }
519519
self.sendActions(for: .valueChanged)
520-
self.handlers.onDidBeginRefreshing(self)
520+
self.handlers.onDidActivate(self)
521521
}
522522

523523
feedbackGenerator.impactOccurred()

0 commit comments

Comments
 (0)