Skip to content

Commit b784aeb

Browse files
author
Christian Elies
committed
docs(readme): updated readme
1 parent a93f0a9 commit b784aeb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@
77
This Swift package provides a wrapper view around the existing **SwiftUI** `Image view` which adds support for showing and caching remote images.
88
In addition you can specify a loading and error view.
99

10-
You can display images from a specific URL or from the iCloud (through a `PHAsset` identifier).
10+
You can display images from a specific **URL** or from the **iCloud** (through a `PHAsset` identifier).
1111

12-
## Installation
12+
## 💡 Installation
1313

1414
Add this Swift package in Xcode using its Github repository url. (File > Swift Packages > Add Package Dependency...)
1515

16-
## How to use
16+
## 🧭 How to use
1717

1818
Just pass a remote image url or the local identifier of a `PHAsset` and `ViewBuilder`s for the error, image and loading state to the initializer. That's it 🎉
1919

2020
Clear the image cache through `RemoteImageService.cache.removeAllObjects()`.
2121

22-
## Examples
22+
## 📖 Examples
2323

2424
The following code truly highlights the **simplicity** of this view:
2525

26-
URL example:
26+
**URL example:**
2727
```swift
2828
let url = URL(string: "https://images.unsplash.com/photo-1524419986249-348e8fa6ad4a?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1950&q=80")!
2929

@@ -38,7 +38,7 @@ RemoteImage(type: .url(url), errorView: { error in
3838
})
3939
```
4040

41-
PHAsset example:
41+
**PHAsset example:**
4242
```swift
4343

4444
RemoteImage(type: .phAsset(localIdentifier: "541D4013-D51C-463C-AD85-0A1E4EA838FD"), errorView: { error in

0 commit comments

Comments
 (0)