Skip to content

Commit

Permalink
Merge pull request TimOliver#504 from chinsyo/main
Browse files Browse the repository at this point in the history
Fix typo `present` to `preset` in Swift function name `setAspectRatioPresent`
  • Loading branch information
TimOliver authored Nov 25, 2021
2 parents ce977bc + 284c876 commit b7b3d06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Objective-C/TOCropViewController/TOCropViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@
@param aspectRatioPreset The aspect ratio preset
@param animated Whether the transition to the aspect ratio is animated
*/
- (void)setAspectRatioPreset:(TOCropViewControllerAspectRatioPreset)aspectRatioPreset animated:(BOOL)animated NS_SWIFT_NAME(setAspectRatioPresent(_:animated:));
- (void)setAspectRatioPreset:(TOCropViewControllerAspectRatioPreset)aspectRatioPreset animated:(BOOL)animated NS_SWIFT_NAME(setAspectRatioPreset(_:animated:));

/**
Play a custom animation of the target image zooming to its position in
Expand Down
2 changes: 1 addition & 1 deletion Swift/CropViewController/CropViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ open class CropViewController: UIViewController, TOCropViewControllerDelegate {
@param animated Whether the transition to the aspect ratio is animated
*/
public func setAspectRatioPreset(_ aspectRatio: CropViewControllerAspectRatioPreset, animated: Bool) {
toCropViewController.setAspectRatioPresent(aspectRatio, animated: animated)
toCropViewController.setAspectRatioPreset(aspectRatio, animated: animated)
}

/**
Expand Down

0 comments on commit b7b3d06

Please sign in to comment.