Skip to content

Commit 843d029

Browse files
committed
implementado teste de snapshot
2 parents 94f9320 + a3c51ed commit 843d029

32 files changed

+775
-563
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,7 @@ fastlane/report.xml
6969
fastlane/Preview.html
7070
fastlane/screenshots
7171
fastlane/test_output
72+
73+
### Projects ###
74+
solutions/devsprint-caio-santos-7/*.xcodeproj
75+
solutions/devsprint-caio-santos-7/*.xcworkspace

solutions/devsprint-caio-santos-7/FinanceApp.xcodeproj/project.pbxproj

Lines changed: 431 additions & 386 deletions
Large diffs are not rendered by default.

solutions/devsprint-caio-santos-7/FinanceApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 7 deletions
This file was deleted.

solutions/devsprint-caio-santos-7/FinanceApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

Lines changed: 0 additions & 8 deletions
This file was deleted.

solutions/devsprint-caio-santos-7/FinanceApp.xcodeproj/xcshareddata/xcschemes/FinanceApp.xcscheme

Lines changed: 0 additions & 109 deletions
This file was deleted.

solutions/devsprint-caio-santos-7/FinanceApp.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 10 deletions
This file was deleted.

solutions/devsprint-caio-santos-7/FinanceApp.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

Lines changed: 0 additions & 8 deletions
This file was deleted.

solutions/devsprint-caio-santos-7/FinanceApp/AppDelegate/SceneDelegate.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,16 @@
88
import UIKit
99

1010
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
11-
1211
var window: UIWindow?
1312

14-
1513
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
1614

1715
guard let windowScene = (scene as? UIWindowScene) else { return }
1816

1917
self.window = UIWindow(frame: UIScreen.main.bounds)
2018
self.window?.rootViewController = UINavigationController(rootViewController: ContactListViewController())
19+
self.window?.rootViewController = ContactListViewController()
2120
self.window?.windowScene = windowScene
2221
self.window?.makeKeyAndVisible()
2322
}
2423
}
25-
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
//
2+
// TabBarController.swift
3+
// FinanceApp
4+
//
5+
// Created by Vinicius on 13/10/22.
6+
//
7+
8+
import Foundation
9+
import UIKit
10+
11+
class TabBarViewController: UITabBarController, UITabBarControllerDelegate {
12+
override func viewDidLoad() {
13+
super.viewDidLoad()
14+
15+
// Atribuir delegate para que a VC utilize os metodos do delegate
16+
self.delegate = self
17+
}
18+
19+
override func viewWillAppear(_ animated: Bool) {
20+
super.viewWillAppear(animated)
21+
22+
//Criação da primeira tab
23+
let tabHome = HomeViewController()
24+
let tabHomeBarItem = UITabBarItem(title: "Home",
25+
image: UIImage(systemName: "house.fill"),
26+
selectedImage: nil)
27+
28+
tabHome.tabBarItem = tabHomeBarItem
29+
30+
//Criacao da segunda tab
31+
let tabTransfers = TransfersViewController()
32+
let tabTransfersBarItem = UITabBarItem(title: "Transfers",
33+
image: UIImage(systemName: "arrow.up.arrow.down"),
34+
selectedImage: nil)
35+
36+
tabTransfers.tabBarItem = tabTransfersBarItem
37+
38+
self.viewControllers = [
39+
UINavigationController(rootViewController: tabHome),
40+
tabTransfers
41+
]
42+
}
43+
44+
func tabBarController(_ tabBarController: UITabBarController, didSelect viewController: UIViewController) {
45+
46+
}
47+
}

solutions/devsprint-caio-santos-7/FinanceApp/Resources/Info.plist

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>APPL</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleVersion</key>
20+
<string>1</string>
21+
<key>NSAppTransportSecurity</key>
22+
<true/>
523
<key>UIApplicationSceneManifest</key>
624
<dict>
725
<key>UIApplicationSupportsMultipleScenes</key>
@@ -19,5 +37,9 @@
1937
</array>
2038
</dict>
2139
</dict>
40+
<key>UILaunchStoryboardName</key>
41+
<string>LaunchScreen</string>
42+
<key>UISupportedInterfaceOrientations</key>
43+
<array/>
2244
</dict>
2345
</plist>

0 commit comments

Comments
 (0)