Commit ccf97bb1 authored by Giovanni Cariglia's avatar Giovanni Cariglia

Multi View Test

parent 1913a8b0
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
objects = { objects = {
/* Begin PBXBuildFile section */ /* Begin PBXBuildFile section */
9A93295125A0FBC90025FC97 /* DashboardController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A93295025A0FBC90025FC97 /* DashboardController.swift */; };
9A93295425A0FBFF0025FC97 /* DetailsController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A93295325A0FBFF0025FC97 /* DetailsController.swift */; };
9AB7E3E6259D06C8008F9DD8 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9AB7E3E5259D06C8008F9DD8 /* AppDelegate.swift */; }; 9AB7E3E6259D06C8008F9DD8 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9AB7E3E5259D06C8008F9DD8 /* AppDelegate.swift */; };
9AB7E3E8259D06C8008F9DD8 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9AB7E3E7259D06C8008F9DD8 /* SceneDelegate.swift */; }; 9AB7E3E8259D06C8008F9DD8 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9AB7E3E7259D06C8008F9DD8 /* SceneDelegate.swift */; };
9AB7E3EA259D06C8008F9DD8 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9AB7E3E9259D06C8008F9DD8 /* ViewController.swift */; }; 9AB7E3EA259D06C8008F9DD8 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9AB7E3E9259D06C8008F9DD8 /* ViewController.swift */; };
...@@ -16,6 +18,8 @@ ...@@ -16,6 +18,8 @@
/* End PBXBuildFile section */ /* End PBXBuildFile section */
/* Begin PBXFileReference section */ /* Begin PBXFileReference section */
9A93295025A0FBC90025FC97 /* DashboardController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DashboardController.swift; sourceTree = "<group>"; };
9A93295325A0FBFF0025FC97 /* DetailsController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DetailsController.swift; sourceTree = "<group>"; };
9AB7E3E2259D06C8008F9DD8 /* Test Login.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Test Login.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 9AB7E3E2259D06C8008F9DD8 /* Test Login.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Test Login.app"; sourceTree = BUILT_PRODUCTS_DIR; };
9AB7E3E5259D06C8008F9DD8 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; }; 9AB7E3E5259D06C8008F9DD8 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
9AB7E3E7259D06C8008F9DD8 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; }; 9AB7E3E7259D06C8008F9DD8 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
...@@ -63,6 +67,8 @@ ...@@ -63,6 +67,8 @@
9AB7E3EE259D06CB008F9DD8 /* Assets.xcassets */, 9AB7E3EE259D06CB008F9DD8 /* Assets.xcassets */,
9AB7E3F0259D06CB008F9DD8 /* LaunchScreen.storyboard */, 9AB7E3F0259D06CB008F9DD8 /* LaunchScreen.storyboard */,
9AB7E3F3259D06CB008F9DD8 /* Info.plist */, 9AB7E3F3259D06CB008F9DD8 /* Info.plist */,
9A93295025A0FBC90025FC97 /* DashboardController.swift */,
9A93295325A0FBFF0025FC97 /* DetailsController.swift */,
); );
path = "Test Login"; path = "Test Login";
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -137,7 +143,9 @@ ...@@ -137,7 +143,9 @@
isa = PBXSourcesBuildPhase; isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
9A93295125A0FBC90025FC97 /* DashboardController.swift in Sources */,
9AB7E3EA259D06C8008F9DD8 /* ViewController.swift in Sources */, 9AB7E3EA259D06C8008F9DD8 /* ViewController.swift in Sources */,
9A93295425A0FBFF0025FC97 /* DetailsController.swift in Sources */,
9AB7E3E6259D06C8008F9DD8 /* AppDelegate.swift in Sources */, 9AB7E3E6259D06C8008F9DD8 /* AppDelegate.swift in Sources */,
9AB7E3E8259D06C8008F9DD8 /* SceneDelegate.swift in Sources */, 9AB7E3E8259D06C8008F9DD8 /* SceneDelegate.swift in Sources */,
); );
......
...@@ -14,10 +14,26 @@ ...@@ -14,10 +14,26 @@
filePath = "Test Login/ViewController.swift" filePath = "Test Login/ViewController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "44" startingLineNumber = "51"
endingLineNumber = "44" endingLineNumber = "51"
landmarkName = "unknown" landmarkName = "testLogin()"
landmarkType = "0"> landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "183698C8-998B-4832-8222-21AA525C49AE"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Test Login/DetailsController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "12"
endingLineNumber = "12"
landmarkName = "viewDidLoad()"
landmarkType = "7">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
</Breakpoints> </Breakpoints>
......
{ {
"colors" : [ "colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.251",
"green" : "0.212",
"red" : "0.188"
}
},
"idiom" : "universal"
},
{ {
"color" : { "color" : {
"color-space" : "srgb", "color-space" : "srgb",
......
...@@ -12,18 +12,6 @@ ...@@ -12,18 +12,6 @@
}, },
"idiom" : "universal" "idiom" : "universal"
}, },
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.231",
"green" : "0.122",
"red" : "0.800"
}
},
"idiom" : "universal"
},
{ {
"appearances" : [ "appearances" : [
{ {
......
{ {
"colors" : [ "colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.231",
"green" : "0.122",
"red" : "0.800"
}
},
"idiom" : "universal"
},
{ {
"color" : { "color" : {
"color-space" : "srgb", "color-space" : "srgb",
......
This diff is collapsed.
//
// DashboardController.swift
// Test Login
//
// Created by Giovanni Cariglia on 02.01.21.
//
import UIKit
class DashboardController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
@IBAction func unwindToDashboard(_ unwindSegue: UIStoryboardSegue) {
//let sourceViewController = unwindSegue.source
// Use data from the view controller which initiated the unwind segue
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}
//
// DetailsController.swift
// Test Login
//
// Created by Giovanni Cariglia on 02.01.21.
//
import UIKit
class DetailsController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
@IBAction func unwindToDetails(_ unwindSegue: UIStoryboardSegue) {
//let sourceViewController = unwindSegue.source
// Use data from the view controller which initiated the unwind segue
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}
...@@ -23,9 +23,16 @@ class ViewController: UIViewController, UITextFieldDelegate { ...@@ -23,9 +23,16 @@ class ViewController: UIViewController, UITextFieldDelegate {
} }
@IBAction func onBtnLoginAction(_ sender: UIButton) { @IBAction func onBtnLoginAction(_ sender: UIButton) {
_ = testLogin() if testLogin() {
performSegue(withIdentifier: "segueLoginToDashboard", sender: self)
}
} }
@IBAction func unwindToLogin(_ unwindSegue: UIStoryboardSegue) {
//let sourceViewController = unwindSegue.source
// Use data from the view controller which initiated the unwind segue
}
func textFieldShouldReturn(_ textField: UITextField) -> Bool { func textFieldShouldReturn(_ textField: UITextField) -> Bool {
if textField == tvUsername { if textField == tvUsername {
tvPassword.becomeFirstResponder() tvPassword.becomeFirstResponder()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment