Skip to content

Commit

Permalink
Merge pull request #507 from IlyaMakarevich/main
Browse files Browse the repository at this point in the history
fix HTML warning, fix param name - cropRect
  • Loading branch information
TimOliver authored Jan 23, 2022
2 parents 1f8466d + 6509271 commit 2906839
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Swift/CropViewController/CropViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ public typealias CropViewControllerToolbarPosition = TOCropViewControllerToolbar
*/
public typealias CropViewCroppingStyle = TOCropViewCroppingStyle

///------------------------------------------------
// ------------------------------------------------
/// @name Delegate
///------------------------------------------------
// ------------------------------------------------

@objc public protocol CropViewControllerDelegate: NSObjectProtocol {
/**
Expand All @@ -51,7 +51,7 @@ public typealias CropViewCroppingStyle = TOCropViewCroppingStyle
@param cropRect A rectangle indicating the crop region of the image the user chose (In the original image's local co-ordinate space)
@param angle The angle of the image when it was cropped
*/
@objc optional func cropViewController(_ cropViewController: CropViewController, didCropImageToRect rect: CGRect, angle: Int)
@objc optional func cropViewController(_ cropViewController: CropViewController, didCropImageToRect cropRect: CGRect, angle: Int)

/**
Called when the user has committed the crop action, and provides
Expand Down Expand Up @@ -84,9 +84,9 @@ public typealias CropViewCroppingStyle = TOCropViewCroppingStyle
@objc optional func cropViewController(_ cropViewController: CropViewController, didFinishCancelled cancelled: Bool)
}

///------------------------------------------------
// ------------------------------------------------
/// @name Class
///------------------------------------------------
// ------------------------------------------------

open class CropViewController: UIViewController, TOCropViewControllerDelegate {

Expand Down Expand Up @@ -474,9 +474,9 @@ open class CropViewController: UIViewController, TOCropViewControllerDelegate {
return UIRectEdge.all
}

///------------------------------------------------
// ------------------------------------------------
/// @name Object Creation
///------------------------------------------------
// ------------------------------------------------

/**
Creates a new instance of a crop view controller with the supplied image
Expand Down

0 comments on commit 2906839

Please sign in to comment.