Skip to content

Commit cab7a7f

Browse files
committed
WIP
1 parent ba51af9 commit cab7a7f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ For instance, with SwiftUI Introspect you can access `UITableView` to modify sep
2020
- [Implement your own introspectable type](#implement-your-own-introspectable-type)
2121
- [Introspect on future platform versions](#introspect-on-future-platform-versions)
2222
- [Keep instances outside the customize closure](#keep-instances-outside-the-customize-closure)
23+
- [Guidelines for library maintainers](#guidelines-for-library-maintainers)
2324
- [Community projects](#community-projects)
2425

2526
How it works
@@ -68,7 +69,7 @@ Install
6869

6970
#### Xcode
7071

71-
<img width="656" src="https://github.com/siteline/swiftui-introspect/assets/2538074/d19c1dd3-9aa4-4e4f-a5a5-b2d6a5b9b927">
72+
<img width="660" height="300" src="https://github.com/user-attachments/assets/40a719ed-b6b5-4a00-8b90-b813ae5f1e65" />
7273

7374
#### Package.swift
7475

@@ -343,6 +344,15 @@ struct ContentView: View {
343344
}
344345
```
345346

347+
Guidelines for library maintainers
348+
----------------------------------
349+
350+
If you maintain a SwiftUI Introspect-based library, make sure to declare your library's dependency on SwiftUI Introspect with a version range covering at least the last two major SwiftUI Introspect versions. This ensures that your library's dependency on SwiftUI Introspect doesn't clash with other libraries that may depend on different versions of SwiftUI Introspect, or with the target app's direct dependency on SwiftUI Introspect.
351+
352+
```swift
353+
.package(url: "https://github.com/siteline/swiftui-introspect", "1.3.0"..<"27.0.0"),
354+
```
355+
346356
Community projects
347357
------------------
348358

0 commit comments

Comments
 (0)