Questions tagged [uigraphicsimagerenderer]

34 questions
0
votes
0 answers

Swift: Loss of resolution when redrawing PDF

I'm trying to use a PDF file (contains a form with table for several 'records') as a template. My idea is to read in the original file as a template, and then use Swifts drawing features to insert the text at the relevant positions before saving as…
Andy P
  • 667
  • 7
  • 14
0
votes
0 answers

An updated version of drawing text with UIGraphicsImageRender

Using Swift 5, iOS 14 I put together this code to write text to an image using a UIGraphicsImageRenderer. It works, but I wondering if I am mixing old with new here. Is there a better way of doing this perhaps, not using NSAttributedStrings which…
user3069232
  • 8,587
  • 7
  • 46
  • 87
0
votes
1 answer

UIGraphicsImageRenderer mirrors image after applying filter

I'm trying to apply filters on images. Applying the filter works great, but it mirrors the image vertically. The bottom row of images calls the filter function after init. The main image at the top, gets the filter applied after pressing on one at…
Daniel
  • 50
  • 1
  • 7
0
votes
0 answers

Cannot snapshot a UITableViewController but can snapshot UIViewController

I am trying to snapshot a UITableViewController I have a simple test class class FeedSnapshotTests: XCTestCase { // Fails func test_empty_feed_one() { let sut = UITableViewController(style: .grouped) …
Teddy K
  • 820
  • 1
  • 6
  • 17
1 2
3