Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Removed C style loop statement in Playground #18

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion UIImageColorsPlayground.playground/Contents.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let Albums: [Album] = [
let sample = Container(album: Albums[0])
let box = UIView(frame: CGRectMake(0, 0, sample.frame.width * 2, ceil(CGFloat(Albums.count)/2) * sample.frame.height))

for(var i = 0; i < Albums.count; i++) {
for i in 0..<Albums.count {
let c = Container(album: Albums[i])
c.frame.origin = CGPointMake((i%2 == 0) ? 0:sample.frame.width, sample.frame.height * floor(CGFloat(i)/2))
box.addSubview(c)
Expand Down
Binary file not shown.
10 changes: 5 additions & 5 deletions UIImageColorsPlayground.playground/timeline.xctimeline
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,27 @@
version = "3.0">
<TimelineItems>
<LoggerValueHistoryTimelineItem
documentLocation = "#CharacterRangeLen=0&amp;CharacterRangeLoc=2085&amp;EndingColumnNumber=23&amp;EndingLineNumber=19&amp;StartingColumnNumber=1&amp;StartingLineNumber=19&amp;Timestamp=471720782.816797"
documentLocation = "#CharacterRangeLen=0&amp;CharacterRangeLoc=2073&amp;EndingColumnNumber=23&amp;EndingLineNumber=19&amp;StartingColumnNumber=1&amp;StartingLineNumber=19&amp;Timestamp=481246420.554766"
selectedRepresentationIndex = "0"
shouldTrackSuperviewWidth = "NO">
</LoggerValueHistoryTimelineItem>
<LoggerValueHistoryTimelineItem
documentLocation = "#CharacterRangeLen=0&amp;CharacterRangeLoc=2085&amp;EndingColumnNumber=20&amp;EndingLineNumber=19&amp;StartingColumnNumber=1&amp;StartingLineNumber=19&amp;Timestamp=471720782.817038"
documentLocation = "#CharacterRangeLen=0&amp;CharacterRangeLoc=2073&amp;EndingColumnNumber=20&amp;EndingLineNumber=19&amp;StartingColumnNumber=1&amp;StartingLineNumber=19&amp;Timestamp=481246420.555002"
selectedRepresentationIndex = "0"
shouldTrackSuperviewWidth = "NO">
</LoggerValueHistoryTimelineItem>
<LoggerValueHistoryTimelineItem
documentLocation = "#CharacterRangeLen=0&amp;CharacterRangeLoc=2085&amp;EndingColumnNumber=19&amp;EndingLineNumber=19&amp;StartingColumnNumber=1&amp;StartingLineNumber=19&amp;Timestamp=471720782.817225"
documentLocation = "#CharacterRangeLen=0&amp;CharacterRangeLoc=2073&amp;EndingColumnNumber=19&amp;EndingLineNumber=19&amp;StartingColumnNumber=1&amp;StartingLineNumber=19&amp;Timestamp=481246420.555199"
selectedRepresentationIndex = "0"
shouldTrackSuperviewWidth = "NO">
</LoggerValueHistoryTimelineItem>
<LoggerValueHistoryTimelineItem
documentLocation = "#CharacterRangeLen=0&amp;CharacterRangeLoc=2085&amp;EndingColumnNumber=22&amp;EndingLineNumber=19&amp;StartingColumnNumber=1&amp;StartingLineNumber=19&amp;Timestamp=471720782.817397"
documentLocation = "#CharacterRangeLen=0&amp;CharacterRangeLoc=2073&amp;EndingColumnNumber=22&amp;EndingLineNumber=19&amp;StartingColumnNumber=1&amp;StartingLineNumber=19&amp;Timestamp=481246420.555391"
selectedRepresentationIndex = "0"
shouldTrackSuperviewWidth = "NO">
</LoggerValueHistoryTimelineItem>
<LoggerValueHistoryTimelineItem
documentLocation = "#CharacterRangeLen=0&amp;CharacterRangeLoc=2085&amp;EndingColumnNumber=3&amp;EndingLineNumber=19&amp;StartingColumnNumber=1&amp;StartingLineNumber=19&amp;Timestamp=471720782.817565"
documentLocation = "#CharacterRangeLen=0&amp;CharacterRangeLoc=2073&amp;EndingColumnNumber=3&amp;EndingLineNumber=19&amp;StartingColumnNumber=1&amp;StartingLineNumber=19&amp;Timestamp=481246420.555579"
selectedRepresentationIndex = "0"
shouldTrackSuperviewWidth = "NO">
</LoggerValueHistoryTimelineItem>
Expand Down