Skip to content

Commit 4c3b49c

Browse files
chrisco314tonyarnold
authored andcommitted
Integrate playground into sample project, remove duplicated source files, import Differ as module to keep things in sync. (#15)
1 parent 9f24218 commit 4c3b49c

7 files changed

Lines changed: 7 additions & 3 deletions

File tree

Examples/Graph.playground/Contents.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
import UIKit
44
import PlaygroundSupport
5+
import Differ
56

67
let viewController = GraphViewController(string1: "kitten", string2: "sitting")
78
viewController.view.frame = CGRect(x: 0, y: 0, width: 500, height: 500)
89
PlaygroundPage.current.liveView = viewController.view
10+
11+
print("Done")

Examples/Graph.playground/Sources/Diff.swift

Lines changed: 0 additions & 1 deletion
This file was deleted.

Examples/Graph.playground/Sources/ExtendedDiff.swift

Lines changed: 0 additions & 1 deletion
This file was deleted.

Examples/Graph.playground/Sources/GraphView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88

99
import UIKit
10+
@testable import Differ
1011

1112
public struct Grid {
1213
let x: Int

Examples/Graph.playground/Sources/Patch.swift

Lines changed: 0 additions & 1 deletion
This file was deleted.

Examples/Graph.playground/Sources/ViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88

99
import UIKit
10+
@testable import Differ
1011

1112
public class GraphViewController: UIViewController {
1213
let dValueLabel = UILabel()

Examples/TableViewExample/TableViewExample.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
/* End PBXCopyFilesBuildPhase section */
5656

5757
/* Begin PBXFileReference section */
58+
83A52110201BC80200514B1C /* Graph.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; name = Graph.playground; path = ../Graph.playground; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
5859
C9278AB21DE31362009CE846 /* TableViewExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TableViewExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
5960
C9278AB51DE31362009CE846 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
6061
C9278AB71DE31362009CE846 /* TableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TableViewController.swift; sourceTree = "<group>"; };
@@ -90,6 +91,7 @@
9091
C9278AA91DE31361009CE846 = {
9192
isa = PBXGroup;
9293
children = (
94+
83A52110201BC80200514B1C /* Graph.playground */,
9395
C9278AC91DE323F6009CE846 /* Differ.xcodeproj */,
9496
C9278AB41DE31362009CE846 /* TableViewExample */,
9597
C9278AB31DE31362009CE846 /* Products */,

0 commit comments

Comments
 (0)