diff --git a/Playground/SteviaPG.playground/Contents.swift b/Playground/SteviaPG.playground/Contents.swift deleted file mode 100644 index 4a53af8c..00000000 --- a/Playground/SteviaPG.playground/Contents.swift +++ /dev/null @@ -1,67 +0,0 @@ -//: Playground - noun: a place where people can play -import UIKit -import PlaygroundSupport -import Stevia - -// Open the Workspace and -// play around with the constraints! - -class SteviaView:UIView { - - let email = UITextField() - let password = UITextField() - let login = UIButton() - let forgot = UILabel() - - convenience init() { - self.init(frame:CGRect.zero) - - sv( - email.placeholder("Email").style(fieldStyle), - password.placeholder("Password").style(fieldStyle).style(passwordFieldStyle), - login.text("Login").style(buttonSytle).tap(loginTapped), - forgot.text("Forgot ?") - ) - - layout( - 100, - |-email-| ~ 80, - 8, - |-password-forgot-| ~ 80, - >=20, - |login| ~ 80, - 0 - ) - - backgroundColor = .white - password.setContentHuggingPriority(0, for: .horizontal) - forgot.backgroundColor = .red - } - - func fieldStyle(f:UITextField) { - f.borderStyle = .roundedRect - f.font = UIFont(name: "HelveticaNeue-Light", size: 26) - f.returnKeyType = .next - } - - func passwordFieldStyle(f:UITextField) { - f.isSecureTextEntry = true - f.returnKeyType = .done - } - - func buttonSytle(b:UIButton) { - b.backgroundColor = .lightGray - } - - func loginTapped() { - //Do something - } -} - - - - -// Contingency code to live reload the Playground. -let v = SteviaView() -v.frame = CGRect(x: 0.0, y: 0.0, width: 375.0, height: 667.0) -PlaygroundPage.current.liveView = v diff --git a/Playground/SteviaPG.playground/contents.xcplayground b/Playground/SteviaPG.playground/contents.xcplayground deleted file mode 100644 index 189e7b1b..00000000 --- a/Playground/SteviaPG.playground/contents.xcplayground +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Playground/SteviaPG.playground/playground.xcworkspace/contents.xcworkspacedata b/Playground/SteviaPG.playground/playground.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a6..00000000 --- a/Playground/SteviaPG.playground/playground.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/Playground/SteviaPG.playground/playground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Playground/SteviaPG.playground/playground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d98100..00000000 --- a/Playground/SteviaPG.playground/playground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/Playground/SteviaPG.playground/timeline.xctimeline b/Playground/SteviaPG.playground/timeline.xctimeline deleted file mode 100644 index 4a1f8b4e..00000000 --- a/Playground/SteviaPG.playground/timeline.xctimeline +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - diff --git a/Playground/SteviaWS.xcworkspace/contents.xcworkspacedata b/Playground/SteviaWS.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 5c982a3c..00000000 --- a/Playground/SteviaWS.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/Playground/SteviaWS.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Playground/SteviaWS.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d98100..00000000 --- a/Playground/SteviaWS.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - -