Skip to content

Commit deb50e2

Browse files
committed
Fix UILabel/UIView text look like blur
1 parent 644a1e9 commit deb50e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/StackKit/UIView+StackKit/UIView+FitSize.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ extension UIView {
149149
var height: CGFloat?
150150

151151
var cgSize: CGSize {
152-
CGSize(width: width ?? 0, height: height ?? 0)
152+
CGSize(width: ceil(width ?? 0), height: ceil(height ?? 0))
153153
}
154154
}
155155

0 commit comments

Comments
 (0)