Skip to content

Commit

Permalink
Merge pull request OpenFlutter#58 from quantosapplications/master
Browse files Browse the repository at this point in the history
ios - jpegData renamed to UIImageJPEGRepresentation
  • Loading branch information
jigarfumakiya authored Oct 6, 2021
2 parents 1f093a8 + af88c2d commit b69026a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Classes/SwiftFlutterShareMePlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public class SwiftFlutterShareMePlugin: NSObject, FlutterPlugin, SharingDelegate
result("File format not supported Please check the file.")
return;
}
urlData=(image?.jpegData(compressionQuality: 1.0))!
urlData=UIImageJPEGRepresentation(image!, 1.0)!
filePath=URL(fileURLWithPath:NSHomeDirectory()).appendingPathComponent("Documents/whatsAppTmp.wai")
}else{
filePath=URL(fileURLWithPath:NSTemporaryDirectory()).appendingPathComponent("video.m4v")
Expand Down

0 comments on commit b69026a

Please sign in to comment.