Skip to content

Commit

Permalink
Merge pull request #557 from Nimeshk017/main
Browse files Browse the repository at this point in the history
Add crop option preset 16*6
  • Loading branch information
TimOliver authored Apr 6, 2024
2 parents 63c8f6c + 38f2cdf commit 1de3617
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ typedef NS_ENUM(NSInteger, TOCropViewControllerAspectRatioPreset) {
TOCropViewControllerAspectRatioPreset5x4,
TOCropViewControllerAspectRatioPreset7x5,
TOCropViewControllerAspectRatioPreset16x9,
TOCropViewControllerAspectRatioPreset16x6,
TOCropViewControllerAspectRatioPresetCustom
};

Expand Down
2 changes: 2 additions & 0 deletions Objective-C/TOCropViewController/TOCropViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,8 @@ - (void)setAspectRatioPreset:(TOCropViewControllerAspectRatioPreset)aspectRatioP
break;
case TOCropViewControllerAspectRatioPreset16x9:
aspectRatio = CGSizeMake(16.0f, 9.0f);
case TOCropViewControllerAspectRatioPreset16x6:
aspectRatio = CGSizeMake(16.0f, 6.0f);
break;
case TOCropViewControllerAspectRatioPresetCustom:
aspectRatio = self.customAspectRatio;
Expand Down

0 comments on commit 1de3617

Please sign in to comment.