From 9fd78752a2ef2e32705eb1b2ec08e9b796061eb9 Mon Sep 17 00:00:00 2001 From: Peter Tang Date: Sun, 1 Oct 2023 04:21:22 +0800 Subject: [PATCH] renamed --- Sources/SwiftMath/MathBundle/MathImage.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SwiftMath/MathBundle/MathImage.swift b/Sources/SwiftMath/MathBundle/MathImage.swift index ae14112..38dc6ab 100644 --- a/Sources/SwiftMath/MathBundle/MathImage.swift +++ b/Sources/SwiftMath/MathBundle/MathImage.swift @@ -75,7 +75,7 @@ extension MathImage { intrinsicContentSize = intrinsicContentSize(displayList) displayList.textColor = textColor - let size = intrinsicContentSize.integral + let size = intrinsicContentSize.regularized layoutImage(size: size, displayList: displayList) #if os(iOS) @@ -108,7 +108,7 @@ private extension CGAffineTransform { } } extension CGSize { - fileprivate var integral: CGSize { + fileprivate var regularized: CGSize { CGSize(width: ceil(width), height: ceil(height)) } }