When using a UILabel and the alignment frame isn't placed on an integer value, the text can appear blurry.
I solved this by adjusting the return CGRect inside the Alignment constructor. I added a call to .integral
public init(vertical: Vertical, horizontal: Horizontal) {
self.aligner = { (size: CGSize, rect: CGRect) -> CGRect in
let (x, width) = horizontal.align(length: size.width, availableLength: rect.width, offset: rect.origin.x)
let (y, height) = vertical.align(length: size.height, availableLength: rect.height, offset: rect.origin.y)
return CGRect(x: x, y: y, width: width, height: height).integral
}
}
Not sure if this should be classified as a bug