I have a UITableView of UITableViewCells. Using cell.defaultContentConfiguration
I set image
and attributedText
properties of for each cell.
Images created from SF Symbols, all have the same .medium scale, and all align to the same left edge in their column.
But images I create from the asset catalog, single scale SVG images, align in the table column skewed left of the SF symbols in the rows above and below, regardless of what I do, and it also causes the text next to asset images to skew left of the column 'edge' I want to maintain.
Thus, I'm getting a staggered effect I don't want.
The following two UIImage constructors give me different image padding and/or alignments:
UIImage(named: ...) // Asset catalog image
UIImage(systemName: ...) // SF symbol image
I tried applying this to the asset image, but it doesn't change anything:
func withAlignmentRectInsets(UIEdgeInsets) -> UIImage
What would be the best approach to making the asset image align with the SF symbol images in the table?