Skip to content

Commit b89f775

Browse files
committed
fix warnings
1 parent 6359152 commit b89f775

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/ArcGISToolkit/Components/FeatureTemplatePicker/FeatureTemplatePicker.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ private struct FeatureTemplateView: View {
180180
/// This will scale down images that are bigger than the max,
181181
/// but for images smaller than that it will not scale them up.
182182
private func size(for image: UIImage, maxSize: CGFloat) -> (width: CGFloat, height: CGFloat) {
183-
var xScale = min(1, maxSize / image.size.width)
184-
var yScale = min(1, maxSize / image.size.height)
185-
var scale = min(xScale, yScale)
183+
let xScale = min(1, maxSize / image.size.width)
184+
let yScale = min(1, maxSize / image.size.height)
185+
let scale = min(xScale, yScale)
186186
return (
187187
width: image.size.width * xScale,
188188
height: image.size.height * yScale

0 commit comments

Comments
 (0)