From 1b34fb0ba44b0276aab868527a9113393f2b1fd9 Mon Sep 17 00:00:00 2001 From: Luke Zhao Date: Sun, 15 Apr 2018 16:25:28 +0900 Subject: [PATCH] remove playground --- Hero.xcworkspace/contents.xcworkspacedata | 3 -- Playground.playground/Contents.swift | 33 --------------------- Playground.playground/Sources/Support.swift | 10 ------- Playground.playground/contents.xcplayground | 4 --- 4 files changed, 50 deletions(-) delete mode 100644 Playground.playground/Contents.swift delete mode 100644 Playground.playground/Sources/Support.swift delete mode 100644 Playground.playground/contents.xcplayground diff --git a/Hero.xcworkspace/contents.xcworkspacedata b/Hero.xcworkspace/contents.xcworkspacedata index 14d92f9c..bb112e26 100644 --- a/Hero.xcworkspace/contents.xcworkspacedata +++ b/Hero.xcworkspace/contents.xcworkspacedata @@ -1,9 +1,6 @@ - - diff --git a/Playground.playground/Contents.swift b/Playground.playground/Contents.swift deleted file mode 100644 index 55a2289c..00000000 --- a/Playground.playground/Contents.swift +++ /dev/null @@ -1,33 +0,0 @@ - -import UIKit -import Hero - -Hero.shared.containerColor = .black -class VC1: UIViewController { - override func viewDidLoad() { - super.viewDidLoad() - view.backgroundColor = .red - view.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(tap))) - } - - @objc func tap() { - let vc2 = VC2() - vc2.isHeroEnabled = true - vc2.heroModalAnimationType = .pageIn(direction: .left) - present(vc2, animated: true, completion: nil) - } -} - -class VC2: UIViewController { - override func viewDidLoad() { - super.viewDidLoad() - view.backgroundColor = .green - view.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(tap))) - } - - @objc func tap() { - dismiss(animated: true, completion: nil) - } -} - -configPlayground(initialVC: VC1()) diff --git a/Playground.playground/Sources/Support.swift b/Playground.playground/Sources/Support.swift deleted file mode 100644 index 2a9b5511..00000000 --- a/Playground.playground/Sources/Support.swift +++ /dev/null @@ -1,10 +0,0 @@ -import UIKit -import PlaygroundSupport - -let window = UIWindow(frame: CGRect(x: 0, y: 0, width: 375, height: 667)) -public func configPlayground(initialVC: UIViewController) { - PlaygroundPage.current.needsIndefiniteExecution = true - window.rootViewController = initialVC - window.makeKeyAndVisible() - PlaygroundPage.current.liveView = window -} diff --git a/Playground.playground/contents.xcplayground b/Playground.playground/contents.xcplayground deleted file mode 100644 index 5da2641c..00000000 --- a/Playground.playground/contents.xcplayground +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file