-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
164 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
Baseball/Baseball/Presentation/TabBar/InGameTabBarController.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// InGameTabBarController.swift | ||
// Baseball | ||
// | ||
// Created by 지북 on 2021/05/12. | ||
// | ||
|
||
import UIKit | ||
|
||
class InGameTabBarController: UITabBarController { | ||
|
||
static let storyboardName = "Main" | ||
static let storyboardID = "InGameTabBarController" | ||
|
||
static func create(playVC: GamePlayViewController, scoreVC: GameScoreViewController) -> InGameTabBarController { | ||
let storyboard = UIStoryboard(name: storyboardName, bundle: Bundle.main) | ||
guard let vc = storyboard.instantiateViewController(identifier: storyboardID) as? InGameTabBarController else { | ||
return InGameTabBarController() | ||
} | ||
|
||
let playViewBarItem = UITabBarItem(title: "playView", image: UIImage(named: "baseball-player.png"), selectedImage: UIImage(named: "baseball-player.png")) | ||
let scoreViewBarItem = UITabBarItem(title: "scoreView", image: UIImage(named: "analytics.png"), selectedImage: UIImage(named: "analytics.png")) | ||
|
||
playVC.tabBarItem = playViewBarItem | ||
scoreVC.tabBarItem = scoreViewBarItem | ||
|
||
vc.viewControllers = [playVC, scoreVC] | ||
return vc | ||
} | ||
|
||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
Baseball/Baseball/Presentation/Utils/GameScoreViewModel.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// | ||
// GameScoreViewModel.swift | ||
// Baseball | ||
// | ||
// Created by 지북 on 2021/05/12. | ||
// | ||
|
||
import Foundation | ||
|
||
class GameScoreViewModel { | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
Baseball/Baseball/SupportingFile/Assets.xcassets/analytics.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "analytics.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+1.75 KB
Baseball/Baseball/SupportingFile/Assets.xcassets/analytics.imageset/analytics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
Baseball/Baseball/SupportingFile/Assets.xcassets/baseball-player.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "baseball-player.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+1.59 KB
...all/SupportingFile/Assets.xcassets/baseball-player.imageset/baseball-player.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.