Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

Commit

Permalink
Added a working playground to the project
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Kosmaczewski committed Apr 11, 2015
1 parent 6ae49c6 commit 986dc83
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
3 changes: 0 additions & 3 deletions SwiftMoment.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions SwiftMoment/MyPlayground.playground/Contents.swift
@@ -0,0 +1,8 @@
import SwiftMoment

let now = moment()
println(now.format())

var obj = moment([2015, 01, 19, 20, 45, 34])!
obj = obj + 4.days
obj.format(dateFormat: "YYYY MMMM dd")
3 changes: 3 additions & 0 deletions SwiftMoment/MyPlayground.playground/Sources/SupportCode.swift
@@ -0,0 +1,3 @@
//
// This file (and all other Swift source files in the Sources directory of this playground) will be precompiled into a framework which is automatically made available to MyPlayground.playground.
//
2 changes: 2 additions & 0 deletions SwiftMoment/SwiftMoment.xcodeproj/project.pbxproj
Expand Up @@ -32,6 +32,7 @@
3A6429C31A6D2C8700B10310 /* Operators.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Operators.swift; sourceTree = "<group>"; };
3A6429C51A6D33FA00B10310 /* Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Extensions.swift; sourceTree = "<group>"; };
3A6429C71A6D345500B10310 /* DurationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DurationTests.swift; sourceTree = "<group>"; };
3A6CADA61AD9B48D00482995 /* MyPlayground.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; path = MyPlayground.playground; sourceTree = "<group>"; };
3AB0FB6C1A6D15F8006449DB /* SwiftMoment.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SwiftMoment.framework; sourceTree = BUILT_PRODUCTS_DIR; };
3AB0FB701A6D15F8006449DB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3AB0FB711A6D15F8006449DB /* SwiftMoment.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SwiftMoment.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -65,6 +66,7 @@
3AB0FB621A6D15F8006449DB = {
isa = PBXGroup;
children = (
3A6CADA61AD9B48D00482995 /* MyPlayground.playground */,
3AB0FB6E1A6D15F8006449DB /* SwiftMoment */,
3AB0FB7B1A6D15F8006449DB /* SwiftMomentTests */,
3AB0FB6D1A6D15F8006449DB /* Products */,
Expand Down
5 changes: 0 additions & 5 deletions SwiftMomentTest.playground/contents.swift

This file was deleted.

0 comments on commit 986dc83

Please sign in to comment.