Skip to content

Commit

Permalink
release: 1.9.5 (#35)
Browse files Browse the repository at this point in the history
fix UIViewContentModeScaleAspectFill to UIViewContentModeScaleAspectFit
  • Loading branch information
wn-na authored Mar 19, 2024
2 parents 7720d6f + fea1e6a commit 121e576
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ios/CaptureProtection.mm
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ - (void)setScreenRecordScreenWithImage: (UIImage *)image {

UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
imageView.frame = window.frame;
imageView.contentMode = UIViewContentModeScaleAspectFill;
[imageView setClipsToBounds:YES];
imageView.contentMode = UIViewContentModeScaleAspectFit;
[protecterViewController.view addSubview:imageView];
[protecterViewController.view setBackgroundColor:[UIColor whiteColor]];
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-capture-protection",
"version": "1.9.4",
"version": "1.9.5",
"description": "It’s a library for React Native to control simple capture events(i.e. Screenshot or Screen record)",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down

0 comments on commit 121e576

Please sign in to comment.