Skip to content

Commit

Permalink
[UIImage+PhotoManipulatorSwiftTests] Change: Use new drawText()
Browse files Browse the repository at this point in the history
  • Loading branch information
guhungry committed Jul 13, 2024
1 parent 8c0cd6a commit 341eb3c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ class UIImage_PhotoManipulatorSwiftTests: XCTestCase {
image = UIImage.init(namedTest: "background.jpg")
XCTAssertNotNil(image)

image = image.drawText("Test Text To Rotate Draw", position: CGPoint(x: 15, y: 66), color: .blue, size: 42, thickness: 5, rotation: -30, scale: 2)
let style = TextStyle(color: .blue, size: 42, thickness: 5, rotation: -30)
image = image.drawText("Test Text To Rotate Draw", position: CGPoint(x: 15, y: 66), style: style, scale: 2)
XCTAssertNotNil(image)
XCTAssertEqual(image.size, CGSize(width: 800, height: 530))
}
Expand Down

0 comments on commit 341eb3c

Please sign in to comment.