-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from GO-SOPT-iOS-Part/ThirdAssignment
#7 - [Assignment] 3주차 기본과제
- Loading branch information
Showing
54 changed files
with
1,484 additions
and
14 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
Sopt_changhwi/Sopt_changhwi/Assets.xcassets/Tving/bearsImage.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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "bearsImage.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "image [email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "image [email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+2.58 KB
...changhwi/Sopt_changhwi/Assets.xcassets/Tving/bearsImage.imageset/bearsImage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.93 KB
...hanghwi/Sopt_changhwi/Assets.xcassets/Tving/bearsImage.imageset/image [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12 KB
...hanghwi/Sopt_changhwi/Assets.xcassets/Tving/bearsImage.imageset/image [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
Sopt_changhwi/Sopt_changhwi/Assets.xcassets/Tving/jtbcImage.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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "jtbcImage.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "KakaoTalk_Photo_2023-05-05-17-52-12 2.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "KakaoTalk_Photo_2023-05-05-17-52-12 3.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+2.12 KB
...ets.xcassets/Tving/jtbcImage.imageset/KakaoTalk_Photo_2023-05-05-17-52-12 2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.7 KB
...ets.xcassets/Tving/jtbcImage.imageset/KakaoTalk_Photo_2023-05-05-17-52-12 3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+904 Bytes
Sopt_changhwi/Sopt_changhwi/Assets.xcassets/Tving/jtbcImage.imageset/jtbcImage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
Sopt_changhwi/Sopt_changhwi/Assets.xcassets/Tving/myLicenseImage.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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "tvingCashImage.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "스크린샷 2023-04-21 오후 10.25 [email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "스크린샷 2023-04-21 오후 10.25 [email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+641 Bytes
.../Sopt_changhwi/Assets.xcassets/Tving/myLicenseImage.imageset/tvingCashImage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.49 KB
...Assets.xcassets/Tving/myLicenseImage.imageset/스크린샷 2023-04-21 오후 10.25 [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.34 KB
...Assets.xcassets/Tving/myLicenseImage.imageset/스크린샷 2023-04-21 오후 10.25 [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
Sopt_changhwi/Sopt_changhwi/Assets.xcassets/Tving/tvingCashImage.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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "tvingCashImage.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "스크린샷 2023-04-21 오후 10.25 [email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "스크린샷 2023-04-21 오후 10.25 [email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+728 Bytes
.../Sopt_changhwi/Assets.xcassets/Tving/tvingCashImage.imageset/tvingCashImage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.74 KB
...Assets.xcassets/Tving/tvingCashImage.imageset/스크린샷 2023-04-21 오후 10.25 [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.98 KB
...Assets.xcassets/Tving/tvingCashImage.imageset/스크린샷 2023-04-21 오후 10.25 [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
Sopt_changhwi/Sopt_changhwi/Assets.xcassets/Tving/tvingWhiteImage.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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "tvingWhiteImage.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "Mask group.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "Mask [email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+1.64 KB
...hwi/Sopt_changhwi/Assets.xcassets/Tving/tvingWhiteImage.imageset/Mask group.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.35 KB
.../Sopt_changhwi/Assets.xcassets/Tving/tvingWhiteImage.imageset/Mask [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.68 KB
...opt_changhwi/Assets.xcassets/Tving/tvingWhiteImage.imageset/tvingWhiteImage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
Sopt_changhwi/Sopt_changhwi/Assets.xcassets/Tving/tvnImage.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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "tvnImage.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "image [email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "image [email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+1.15 KB
..._changhwi/Sopt_changhwi/Assets.xcassets/Tving/tvnImage.imageset/image [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.75 KB
..._changhwi/Sopt_changhwi/Assets.xcassets/Tving/tvnImage.imageset/image [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+594 Bytes
Sopt_changhwi/Sopt_changhwi/Assets.xcassets/Tving/tvnImage.imageset/tvnImage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions
34
Sopt_changhwi/Sopt_changhwi/OverridePractice/OverridePractice.playground/Contents.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 @@ | ||
import UIKit | ||
|
||
|
||
|
||
|
||
class Name { | ||
func introduce() { | ||
print("소개해주세요") | ||
} | ||
} | ||
|
||
class Changhwi : Name { | ||
override func introduce() { | ||
super.introduce() | ||
print("나는 창휘") | ||
super.introduce() | ||
} | ||
} | ||
|
||
var changhwi = Changhwi() | ||
print(changhwi.introduce()) | ||
//소개해주세요 | ||
//나는 창휘 | ||
//소개해주세요 | ||
|
||
|
||
class Age { | ||
static let myAge : Int = 26 | ||
let yourAge : Int = 24 | ||
} | ||
|
||
|
||
print(Age.myAge) | ||
print(Age().yourAge) |
4 changes: 4 additions & 0 deletions
4
...changhwi/Sopt_changhwi/OverridePractice/OverridePractice.playground/contents.xcplayground
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,4 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<playground version='5.0' target-platform='macos' buildActiveScheme='true' importAppTypes='true'> | ||
<timeline fileName='timeline.xctimeline'/> | ||
</playground> |
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
33 changes: 33 additions & 0 deletions
33
Sopt_changhwi/Sopt_changhwi/Tving/Sources/Classes/Base/BaseUIVIew.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,33 @@ | ||
// | ||
// BaseUIVIew.swift | ||
// Sopt_changhwi | ||
// | ||
// Created by 류창휘 on 2023/05/03. | ||
// | ||
|
||
import UIKit | ||
|
||
class BaseUIView : UIView { | ||
override init(frame: CGRect) { | ||
super.init(frame: frame) | ||
setupLayout() | ||
setupConstraints() | ||
} | ||
|
||
required init?(coder: NSCoder) { | ||
super.init(coder: coder) | ||
setupLayout() | ||
setupConstraints() | ||
} | ||
|
||
// MARK: - 서브뷰 추가 함수 | ||
func setupLayout() { | ||
/// Override Layout | ||
/// addSubview | ||
} | ||
// MARK: - 레이아웃 정의 함수 | ||
func setupConstraints() { | ||
/// Override Constraints | ||
/// snapkit | ||
} | ||
} |
61 changes: 61 additions & 0 deletions
61
Sopt_changhwi/Sopt_changhwi/Tving/Sources/Classes/Base/BaseViewController.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,61 @@ | ||
// | ||
// BaseViewController.swift | ||
// Sopt_changhwi | ||
// | ||
// Created by 류창휘 on 2023/05/02. | ||
// | ||
|
||
import UIKit | ||
|
||
class BaseViewController: UIViewController { | ||
|
||
// MARK: Properties | ||
|
||
lazy private(set) var className: String = { | ||
return type(of: self).description().components(separatedBy: ".").last ?? "" | ||
}() | ||
|
||
// MARK: Initializing | ||
|
||
override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) { | ||
super.init(nibName: nil, bundle: nil) | ||
} | ||
|
||
@available(*, unavailable) | ||
required init?(coder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
|
||
deinit { | ||
print("DEINIT: \(className)") | ||
} | ||
|
||
// MARK: Life Cycle | ||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
setStyle() | ||
setLayout() | ||
actions() | ||
} | ||
|
||
override func viewWillAppear(_ animated: Bool) { | ||
super.viewWillAppear(animated) | ||
|
||
// navigationController?.setNavigationBarHidden(true, animated: true) | ||
} | ||
|
||
// MARK: UI | ||
|
||
/// Attributes (속성) 설정 메서드 | ||
func setStyle() { | ||
view.backgroundColor = .color000000 | ||
} | ||
|
||
/// Hierarchy, Constraints (계층 및 제약조건) 설정 메서드 | ||
func setLayout() {} | ||
|
||
/// 액성 함수 | ||
func actions() {} | ||
} | ||
|
||
|
38 changes: 38 additions & 0 deletions
38
Sopt_changhwi/Sopt_changhwi/Tving/Sources/Classes/Manager/UserDefaultManager.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,38 @@ | ||
// | ||
// UserDefaultManager.swift | ||
// Sopt_changhwi | ||
// | ||
// Created by 류창휘 on 2023/05/02. | ||
// | ||
|
||
import Foundation | ||
|
||
class UserDefaultManager { | ||
enum Key : String { | ||
case hasOnboarded | ||
} | ||
let defaults = UserDefaults.standard | ||
static let shared = UserDefaultManager() | ||
|
||
var hasOnboarded : Bool { | ||
if load(.hasOnboarded) == nil { | ||
save(value: false, forkey: .hasOnboarded) | ||
return true | ||
} else { | ||
return false | ||
} | ||
} | ||
func save( value: Any, forkey key: Key) { | ||
defaults.set(value, forKey: key.rawValue) | ||
} | ||
|
||
func load(_ key : Key) -> Any? { | ||
switch key { | ||
case .hasOnboarded: | ||
return loadBool(key) | ||
} | ||
} | ||
func loadBool(_ key: Key) -> Bool? { | ||
return defaults.object(forKey: key.rawValue) as? Bool | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
Sopt_changhwi/Sopt_changhwi/Tving/Sources/Classes/TabBar/TabBarController.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,35 @@ | ||
// | ||
// TabBarController.swift | ||
// Sopt_changhwi | ||
// | ||
// Created by 류창휘 on 2023/05/02. | ||
// | ||
|
||
import UIKit | ||
|
||
class TabBarController : UITabBarController { | ||
let mainTab = UINavigationController(rootViewController: MainViewController()) | ||
|
||
let mainTabBarItem = UITabBarItem(title: "홈", image: UIImage(systemName: "house.fill"), tag: 0) | ||
|
||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
mainTab.tabBarItem = mainTabBarItem | ||
|
||
viewControllers = [mainTab] | ||
|
||
///탭바가 반투명 상태 bool | ||
tabBar.isTranslucent = false | ||
tabBar.barTintColor = .color000000 | ||
let appearance = UITabBarAppearance() | ||
appearance.configureWithOpaqueBackground() | ||
|
||
appearance.backgroundColor = .color000000 | ||
tabBar.standardAppearance = appearance | ||
tabBar.scrollEdgeAppearance = appearance | ||
// tabBar.unselectedItemTintColor = .lightGray | ||
tabBar.tintColor = .colorFFFFFF | ||
|
||
UITabBar.appearance().standardAppearance = appearance | ||
} | ||
} |
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
File renamed without changes.
Oops, something went wrong.