Skip to content

Commit baca5d9

Browse files
authored
Merge pull request #154 from cashapp/entin/collapse-install-sections-readme
Make how to install sections in README collapsible
2 parents a5ce2b6 + 7034d9a commit baca5d9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ AccessibilitySnapshot makes it simple to add regression tests for accessibility
1515

1616
By default, AccessibilitySnapshot uses [SnapshotTesting](https://github.com/pointfreeco/swift-snapshot-testing) to record snapshots and perform comparisons. The framework also includes support for using [iOSSnapshotTestCase](https://github.com/uber/ios-snapshot-test-case) as the snapshotting engine instead. Before setting up accessibility snapshot tests, make sure your project is set up for standard snapshot testing. Accessibility snapshot tests require that the test target has a host application. See the [Extensions](#extensions) section below for a list of other available snapshotting options.
1717

18-
### CocoaPods
18+
<details>
19+
<summary><h3>CocoaPods</h3></summary>
1920

2021
Install with [CocoaPods](https://cocoapods.org) by adding the following to your `Podfile`:
2122

@@ -34,8 +35,10 @@ Alternatively, if you wish to use [iOSSnapshotTestCase](https://github.com/uber/
3435
```ruby
3536
pod 'AccessibilitySnapshot/iOSSnapshotTestCase'
3637
```
38+
</details>
3739

38-
### Swift Package Manager
40+
<details>
41+
<summary><h3>Swift Package Manager</h3></summary>
3942

4043
Install with [Swift Package Manager](https://swift.org/package-manager/) by adding the following to your `Package.swift`:
4144

@@ -71,14 +74,17 @@ targets: [
7174
.testTarget(name: "MyAppTests", dependencies: ["MyApp", "FBSnapshotTestCase+Accessibility"])
7275
]
7376
```
77+
</details>
7478

75-
### Carthage
79+
<details>
80+
<summary><h3>Carthage</h3></summary>
7681

7782
Only the core accessibility parser (not the snapshot integration layers) can be installed via Carthage. To install AccessibilitySnapshotCore via [Carthage](https://github.com/Carthage/Carthage), add the following to your `Cartfile`:
7883

7984
```ogdl
8085
github "cashapp/AccessibilitySnapshot"
8186
```
87+
</details>
8288

8389
## Usage
8490

0 commit comments

Comments
 (0)