Question: Using Visual Studio 2015
ASP.NET Core application uses class library
ASP.NET Core application and class library had .NET Framework 4.5.2 platform when projects were creating
Class library have .NETStandard Library 1.6.0 dependency
Will this application launch on .NET Core target runtime or it will require full .NET Framework?

Here is some snapshots

[solution explorer of .net core class library](https://i.stack.imgur.com/hTHJu.png)

[project.json of .net core class library](https://i.stack.imgur.com/mmVgq.png)

Answer: 
You can use default controls to achieve image cropping.

```
self.imgPicker.allowsEditing = true

```

Delegate Method 

```
//MARK: image picker delegate method
    //MARK:
    func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {

        var image : UIImage!

        if let img = info[UIImagePickerControllerEditedImage] as? UIImage
        {
            image = img

        }
        else if let img = info[UIImagePickerControllerOriginalImage] as? UIImage
        {
            image = img
        }

        picker.dismiss(animated: true,completion: nil)
 }

```
```
Swift 5.0

```

The shortest way of declaring:

```
//MARK: image picker delegate method
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {

     var image : UIImage!
     if let img = info[.editedImage] as? UIImage {
         image = img
     } else if let img = info[.originalImage] as? UIImage {
         image = img
     }
     picker.dismiss(animated: true,completion: nil)
 }

```

Button sender:

```
@objc func buttonClicked(sender: UIButton!) {

    if UIImagePickerController.isSourceTypeAvailable(UIImagePickerController.SourceType.photoLibrary) {
        let picker = UIImagePickerController()
        picker.delegate = self
        picker.sourceType = UIImagePickerController.SourceType.photoLibrary
        picker.allowsEditing = true
        present(picker, animated: true, completion: nil)
    }
}

```

> 
> * Don't forget to grant Photo Library access in .plist
> 
> 
>