Skip to content

Instantly share code, notes, and snippets.

@laevandus
Created November 21, 2020 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laevandus/18739e849a123beb6e95334c22b22922 to your computer and use it in GitHub Desktop.
Save laevandus/18739e849a123beb6e95334c22b22922 to your computer and use it in GitHub Desktop.
var body: some View {
VStack(spacing: 32) {
imageView(for: viewModel.selectedImage)
controlBar()
}
.fullScreenCover(isPresented: $viewModel.isPresentingImagePicker, content: {
ImagePicker(sourceType: viewModel.sourceType, completionHandler: viewModel.didSelectImage)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment