Skip to content

Commit 298ad0f

Browse files
committed
fix tiling
1 parent a61e09a commit 298ad0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SwiftDraw/Sources/SVG+CoreGraphics.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public extension CGContext {
6464
for r in 0..<rows {
6565
for c in 0..<cols {
6666
let tile = CGRect(
67-
x: rect.minX + CGFloat(r) * svg.size.width,
68-
y: rect.minY + CGFloat(c) * svg.size.height,
67+
x: rect.minX + CGFloat(c) * svg.size.width,
68+
y: rect.minY + CGFloat(r) * svg.size.height,
6969
width: svg.size.width,
7070
height: svg.size.height
7171
)

0 commit comments

Comments
 (0)