@@ -1191,26 +1191,26 @@ public final class WinUIBackend: AppBackend {
11911191 _ collection: WinUI . GeometryCollection ,
11921192 lastPoint: Point
11931193 ) -> PathFigure {
1194- var pathGeo : PathGeometry
1194+ var pathGeometry : PathGeometry
11951195 if collection. size > 0 ,
11961196 let castedLast = collection. getAt ( collection. size - 1 ) as? PathGeometry
11971197 {
1198- pathGeo = castedLast
1198+ pathGeometry = castedLast
11991199 } else {
1200- pathGeo = PathGeometry ( )
1201- collection. append ( pathGeo )
1200+ pathGeometry = PathGeometry ( )
1201+ collection. append ( pathGeometry )
12021202 }
12031203
12041204 var figure : PathFigure
1205- if pathGeo . figures. size > 0 {
1205+ if pathGeometry . figures. size > 0 {
12061206 // Note: the if check and force-unwrap is necessary. You can't do an `if let`
12071207 // here because PathFigureCollection uses unsigned integers for its indices so
12081208 // `size - 1` would underflow (causing a fatalError) if it's empty.
1209- figure = pathGeo . figures. getAt ( pathGeo . figures. size - 1 ) !
1209+ figure = pathGeometry . figures. getAt ( pathGeometry . figures. size - 1 ) !
12101210 } else {
12111211 figure = PathFigure ( )
12121212 figure. startPoint = lastPoint
1213- pathGeo . figures. append ( figure)
1213+ pathGeometry . figures. append ( figure)
12141214 }
12151215
12161216 return figure
@@ -1226,14 +1226,14 @@ public final class WinUIBackend: AppBackend {
12261226 lastPoint = Point ( x: Float ( point. x) , y: Float ( point. y) )
12271227
12281228 if geometry. size > 0 ,
1229- let pathGeo = geometry. getAt ( geometry. size - 1 ) as? PathGeometry ,
1230- pathGeo . figures. size > 0
1229+ let pathGeometry = geometry. getAt ( geometry. size - 1 ) as? PathGeometry ,
1230+ pathGeometry . figures. size > 0
12311231 {
1232- let figure = pathGeo . figures. getAt ( pathGeo . figures. size - 1 ) !
1232+ let figure = pathGeometry . figures. getAt ( pathGeometry . figures. size - 1 ) !
12331233 if figure. segments. size > 0 {
12341234 let newFigure = PathFigure ( )
12351235 newFigure. startPoint = lastPoint
1236- pathGeo . figures. append ( newFigure)
1236+ pathGeometry . figures. append ( newFigure)
12371237 } else {
12381238 figure. startPoint = lastPoint
12391239 }
@@ -1362,8 +1362,8 @@ public final class WinUIBackend: AppBackend {
13621362 }
13631363
13641364 if geometry. size > 0 ,
1365- let pathGeo = geometry. getAt ( geometry. size - 1 ) as? PathGeometry ,
1366- pathGeo . figures. contains ( where: { ( $0? . segments. size ?? 0 ) > 0 } )
1365+ let pathGeometry = geometry. getAt ( geometry. size - 1 ) as? PathGeometry ,
1366+ pathGeometry . figures. contains ( where: { ( $0? . segments. size ?? 0 ) > 0 } )
13671367 {
13681368 // Start a new PathGeometry so that transforms don't apply going forward
13691369 geometry. append ( PathGeometry ( ) )
0 commit comments