Skip to content

Commit

Permalink
Watermark is better name than image
Browse files Browse the repository at this point in the history
  • Loading branch information
ApolloZhu committed Apr 8, 2021
1 parent d810992 commit 7b27bc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/EFQRCodeGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ public class EFQRCodeGenerator: NSObject {
}
}
// Image
let imageRect: CGRect = mode.rectForImage(
let imageRect: CGRect = mode.rectForWatermark(
ofSize: CGSize(width: image.width, height: image.height),
inCanvasOfSize: size
)
Expand Down
4 changes: 2 additions & 2 deletions Source/EFWatermarkMode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ import CoreGraphics
/// - imageSize: size of the watermark image to place in the canvas.
/// - canvasSize: size of the canvas to place the image in.
/// - Returns: the area where the image is going to be according to the watermark mode.
public func rectForImage(ofSize imageSize: CGSize,
inCanvasOfSize canvasSize: CGSize) -> CGRect {
public func rectForWatermark(ofSize imageSize: CGSize,
inCanvasOfSize canvasSize: CGSize) -> CGRect {
let size = canvasSize
var finalSize: CGSize = size
var finalOrigin: CGPoint = CGPoint.zero
Expand Down

0 comments on commit 7b27bc5

Please sign in to comment.