Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hyouuu authored Nov 30, 2021
1 parent 8c036c9 commit 27a9685
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,27 @@ private lazy var agrume = Agrume(image: UIImage(named: "…")!)

You can also pass in a `URL` and Agrume will take care of the download for you.

### SwiftUI

Currently the SwiftUI implementation doesn't surface configurations, so can only be used as a single image basic viewer - PRs welcome to extend its functionality.

```swift
import Agrume

struct ExampleView: View {
let image: UIImage
@State var showAgrume = false

VStack {
Text("Test")
}
.fullScreenCover(isPresented: $showAgrume, onDismiss: {}) {
AgrumeView(image: image)
.ignoresSafeArea()
}
}
```

### Background Configuration

Agrume has different background configurations. You can have it blur the view it's covering or supply a background color:
Expand Down

0 comments on commit 27a9685

Please sign in to comment.