Skip to content
Snippets Groups Projects
Commit 6e8126ff authored by Aylin's avatar Aylin
Browse files

Committing ImagePicker

parent da290620
Branches
No related tags found
No related merge requests found
......@@ -6,13 +6,12 @@
// Copyright © 2021 fu-berlin. All rights reserved.
/// This file is a SwiftUI wrapper for UIImagePickerController
/// it can be used it to attach pictures to a mail and preview them
import SwiftUI
struct ImagePicker: UIViewControllerRepresentable {
@Environment(\.presentationMode) var presentationMode
@Binding var image: UIImage?
var xy = 3
class Coordinator: NSObject, UINavigationControllerDelegate, UIImagePickerControllerDelegate {
let parent: ImagePicker
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment