Skip to content

Commit 036c673

Browse files
authored
Merge pull request #14 from NickEntin/entin/infinite-activition-point
Only show activation point when it is inside the snapshotted view
2 parents bec7ed4 + 3966cfc commit 036c673

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

AccessibilitySnapshot.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'AccessibilitySnapshot'
3-
s.version = '0.3.1'
3+
s.version = '0.3.2'
44
s.summary = 'Easy regression testing for iOS accessibility'
55

66
s.homepage = 'https://github.com/CashApp/AccessibilitySnapshot'

AccessibilitySnapshot/Core/Classes/AccessibilitySnapshotView.swift

+4
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ public final class AccessibilitySnapshotView: UIView {
164164
}
165165

166166
case .always:
167+
guard containedView.bounds.contains(marker.activationPoint) else {
168+
break
169+
}
170+
167171
let activationPointView = UIImageView(
168172
image: UIImage(named: "Crosshairs", in: Bundle.accessibilitySnapshotResources, compatibleWith: nil)
169173
)

Example/Podfile.lock

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
PODS:
2-
- AccessibilitySnapshot (0.3.1):
3-
- AccessibilitySnapshot/Core (= 0.3.1)
4-
- AccessibilitySnapshot/iOSSnapshotTestCase (= 0.3.1)
5-
- AccessibilitySnapshot/Core (0.3.1):
2+
- AccessibilitySnapshot (0.3.2):
3+
- AccessibilitySnapshot/Core (= 0.3.2)
4+
- AccessibilitySnapshot/iOSSnapshotTestCase (= 0.3.2)
5+
- AccessibilitySnapshot/Core (0.3.2):
66
- fishhook (~> 0.2)
7-
- AccessibilitySnapshot/iOSSnapshotTestCase (0.3.1):
7+
- AccessibilitySnapshot/iOSSnapshotTestCase (0.3.2):
88
- AccessibilitySnapshot/Core
99
- iOSSnapshotTestCase (~> 6.0)
1010
- fishhook (0.2)
@@ -31,7 +31,7 @@ EXTERNAL SOURCES:
3131
:path: "../AccessibilitySnapshot.podspec"
3232

3333
SPEC CHECKSUMS:
34-
AccessibilitySnapshot: 5c623007716998e3b9d040fd28f42407c0e38502
34+
AccessibilitySnapshot: fc706b52b64780cc00dbadda8b445320ff3ed17c
3535
fishhook: ea19933abfe8f2f52c55fd8b6e2718467d3ebc89
3636
iOSSnapshotTestCase: 9ab44cb5aa62b84d31847f40680112e15ec579a6
3737
Paralayout: e36bf8c795ed9930159b9635ebb802d026667d0b

0 commit comments

Comments
 (0)