Commit aa728b71 authored by O'Reilly Media, Inc's avatar O'Reilly Media, Inc
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading
+7 −0
Changes for Learning To Program With Swift - Working Files/Chapter 1/Introduction.playground/contents.xcplayground: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<playground version='3.0' sdk='iphonesimulator'>
    <sections>
        <code source-file-name='section-1.swift'/>
    </sections>
    <timeline fileName='timeline.xctimeline'/>
</playground>
 No newline at end of file
+16 −0
Changes for Learning To Program With Swift - Working Files/Chapter 1/Introduction.playground/section-1.swift: 16 added lines, 0 removed lines.
Original line number Diff line number Diff line
// Playground - noun: a place where people can play

import UIKit

var str = "Let's go play!"
let myLabel = UILabel(frame:CGRectMake(0,0,300,300))

myLabel.text = str
myLabel.textAlignment = NSTextAlignment.Center
myLabel.backgroundColor = UIColor(red: 1, green: 1, blue: 0, alpha: 1.0)
myLabel.layer.masksToBounds = true
myLabel.layer.cornerRadius = 10

myLabel

+6 −0
Changes for Learning To Program With Swift - Working Files/Chapter 1/Introduction.playground/timeline.xctimeline: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<Timeline
   version = "3.0">
   <TimelineItems>
   </TimelineItems>
</Timeline>
+7 −0
Changes for Learning To Program With Swift - Working Files/Chapter 1/loop.playground/contents.xcplayground: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<playground version='3.0' sdk='iphonesimulator'>
    <sections>
        <code source-file-name='section-1.swift'/>
    </sections>
    <timeline fileName='timeline.xctimeline'/>
</playground>
 No newline at end of file
+8 −0
Changes for Learning To Program With Swift - Working Files/Chapter 1/loop.playground/section-1.swift: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
// Playground - noun: a place where people can play

var j=2;

for var i = 1; i < 5; i++
{
    j=j*i
}
Loading