Skip to content

Commit

Permalink
bugfix: for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
iDurian committed Sep 18, 2016
1 parent c1fab00 commit 599124c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/NeonGroupable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ public extension Groupable {
}
}

for _ in views {
frame = CGRect(x: xOrigin, y: yOrigin, width: width, height: height)
for view in views {
view.frame = CGRect(x: xOrigin, y: yOrigin, width: width, height: height)

xOrigin += xAdjust
yOrigin += yAdjust
Expand Down Expand Up @@ -243,8 +243,8 @@ public extension Groupable {
yAdjust = height + padding
}

for _ in views {
frame = CGRect(x: xOrigin, y: yOrigin, width: width, height: height)
for view in views {
view.frame = CGRect(x: xOrigin, y: yOrigin, width: width, height: height)

xOrigin += xAdjust
yOrigin += yAdjust
Expand Down

0 comments on commit 599124c

Please sign in to comment.