Skip to content

Commit 769d686

Browse files
committed
Update README
1 parent b8f90e8 commit 769d686

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,14 @@ var body: some View {
164164
}
165165
```
166166

167-
Note: For indicator, you can custom your own as well. For example, iOS 14/watchOS 7 introduce the new `ProgressView`, which can replace our built-in `ProgressIndicator/ActivityIndicator` (where watchOS does not provide).
167+
Note: For indicator, you can custom your own as well. For example, iOS 14/watchOS 7 introduce the new `ProgressView`, which can be easily used via:
168+
169+
```swift
170+
WebImage(url: url)
171+
.indicator(.activity)
172+
```
173+
174+
or you can just write like:
168175

169176
```swift
170177
WebImage(url: url)
@@ -628,7 +635,7 @@ SDWebImageSwiftUI has Unit Test to increase code quality. For SwiftUI, there are
628635

629636
However, since SwiftUI is State-Based and Attributed-Implemented layout system, there are open source projects who provide the solution:
630637

631-
+ [ViewInspector](https://github.com/nalexn/ViewInspector): Inspect View's runtime attribute value (like `.frame` modifier, `.image` value). We use this to test `AnimatedImage` and `WebImage`. It also allows the inspect to native UIView/NSView, which we use to test `ActivityIndicator` and `ProgressIndicator`.
638+
+ [ViewInspector](https://github.com/nalexn/ViewInspector): Inspect View's runtime attribute value (like `.frame` modifier, `.image` value). We use this to test `AnimatedImage` and `WebImage`. It also allows the inspect to native UIView/NSView.
632639

633640
To run the test:
634641

0 commit comments

Comments
 (0)