teachers-assistant

[RADIOACTIVE] oh boy did i make bad apps back in the day
git clone git://git.figbert.com/teachers-assistant.git
Log | Files | Refs

ViewController.swift (1423B)


      1 //
      2 //  ViewController.swift
      3 //  Teachers' Assistant
      4 //
      5 //  Created by Benjamin Welner on 2/9/19.
      6 //  Copyright © 2019 FIGBERT Inc. All rights reserved.
      7 //
      8 
      9 import UIKit
     10 
     11 class ViewController: UIViewController {
     12  
     13 /* PRELIMINARY GLOBAL COLOR THEME START */
     14     
     15 //Creating a global variable to manage color theme
     16 struct globalVariables {
     17     //All of the possible color themes
     18     static let colorThemes = ["Orange", "Dark Blue", "Light Blue", "Gray",  "Green", "Pink", "Inverted Orange", "Inverted Dark Blue", "Inverted Light Blue", "Inverted Gray", "Inverted Green", "Inverted Pink"]
     19     //Color theme of all buttons
     20     static var activeColorTheme = "Orange"
     21     //Global status
     22     static var globalOut: Bool = true
     23 }
     24     
     25 /* PRELIMINARY GLOBAL COLOR THEME END*/
     26    
     27 @IBOutlet weak var usernameField: UITextField!
     28 @IBOutlet weak var passwordField: UITextField!
     29 
     30 @IBAction func signInToHome(_ sender: Any) {
     31     let username: String = usernameField.text!
     32     let password: String = passwordField.text!
     33     
     34     if (username == "bwelner" && password == "c4ctus"){
     35         performSegue(withIdentifier: "logInToHomeScreen", sender: self)
     36     }
     37 }
     38     
     39 override func viewDidLoad() {
     40     super.viewDidLoad()
     41     //Do any additional setup after loading the view, typically from a nib.
     42 }
     43 
     44 override func didReceiveMemoryWarning() {
     45     super.didReceiveMemoryWarning()
     46     // Dispose of any resources that can be recreated.
     47 }
     48 
     49 
     50 }