Skip to content

Commit

Permalink
Fix README example
Browse files Browse the repository at this point in the history
  • Loading branch information
JanGorman committed Jan 3, 2022
1 parent edb3c65 commit 090b9c2
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,20 @@ Currently the SwiftUI implementation doesn't surface configurations, so can only
import Agrume

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

VStack {
Text("Test")

let image: UIImage

@State var showAgrume = false

var body: some View {
Button("Launch Agrume from SwiftUI") {
showAgrume.toggle()
}
.fullScreenCover(isPresented: $showAgrume, onDismiss: {}) {
AgrumeView(image: image)
.ignoresSafeArea()
.fullScreenCover(isPresented: $showAgrume) {
AgrumeView(image: image)
.ignoresSafeArea()
}
}
}
```

Expand Down

0 comments on commit 090b9c2

Please sign in to comment.