-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEntryPages
43 lines (30 loc) · 1.17 KB
/
EntryPages
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// ViewController.swift
// RentAdate
//
// Created by Kassandra Capretta on 12/19/19.
// Copyright © 2019 Kassandra Capretta. All rights reserved.
//
import UIKit
class entryPageViewController: UIViewController {
@IBOutlet weak var signin: UIButton!
@IBOutlet weak var signup: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
setUpElements()
}
func setUpElements() {
Utilities.styleFilledButton(signin)
Utilities.styleHollowButton(signup)
}
@IBAction func signinButtonTapped(_ sender: UIButton) {
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let signin = storyboard.instantiateViewController(identifier: "SigninViewController")
self.navigationController?.pushViewController(signin, animated: true)
}
@IBAction func signupButtonTapped(_ sender: Any) {
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let signup = storyboard.instantiateViewController(identifier: "SignupViewController")
self.navigationController?.pushViewController(signup, animated: true)
}
}