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 4.0+

```
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) {
    var image : UIImage!

    if let img = info[UIImagePickerController.InfoKey.editedImage] as? UIImage
    {
        image = img

    }
    else if let img = info[UIImagePickerController.InfoKey.originalImage] as? UIImage
    {
        image = img
    }

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

```

Don't forget to set allowsEditing to true.

Another option is to use [TOCropViewController](https://github.com/TimOliver/TOCropViewController). Its does more with much less code. What I found good about it that it allows you to change the cropping rectangle.

```
class ViewController: UIViewController, CropViewControllerDelegate {

    ... //your viewcontroller code

    func presentCropViewController {
        let image: UIImage = ... //Load an image

        let cropViewController = CropViewController(image: image)
        cropViewController.delegate = self
        present(cropViewController, animated: true, completion: nil)
    }

    func cropViewController(_ cropViewController: CropViewController, 
         didCropToImage image: UIImage, withRect cropRect: CGRect, angle: Int) {
        // 'image' is the newly cropped version of the original image
    }
}

```