Skip to content

Commit

Permalink
Merge pull request #82 from tony-yan-yu/update-fix
Browse files Browse the repository at this point in the history
Update FastttCamera.m to silence UI warning
  • Loading branch information
ssathy2 committed Jul 6, 2021
2 parents e22e0b8 + ad90bd3 commit 104cdf2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions FastttCamera/FastttCamera.m
Original file line number Diff line number Diff line change
Expand Up @@ -607,8 +607,10 @@ - (void)_processImage:(UIImage *)image withCropRect:(CGRect)cropRect maxDimensio
[capturedImage scaleToMaxDimension:maxDimension
withCallback:scaleCallback];
} else if (fromCamera && self.scalesImage) {
[capturedImage scaleToSize:self.view.bounds.size
withCallback:scaleCallback];
dispatch_async(dispatch_get_main_queue(), ^(void) {
//Run UI Updates
[capturedImage scaleToSize:self.view.bounds.size withCallback:scaleCallback];
});
}

if (fromCamera && !self.isCapturingImage) {
Expand Down

0 comments on commit 104cdf2

Please sign in to comment.