Skip to content

Commit

Permalink
Merge pull request #8 from GO-SOPT-iOS-Part/ThirdAssignment
Browse files Browse the repository at this point in the history
#7 - [Assignment] 3주차 기본과제
  • Loading branch information
ryuchanghwi authored May 11, 2023
2 parents ae17f95 + dd3bcdf commit 79be06f
Show file tree
Hide file tree
Showing 54 changed files with 1,484 additions and 14 deletions.
182 changes: 176 additions & 6 deletions Sopt_changhwi/Sopt_changhwi.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

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
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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)
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>
5 changes: 3 additions & 2 deletions Sopt_changhwi/Sopt_changhwi/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
guard let windowScene = (scene as? UIWindowScene) else { return }
self.window = UIWindow(windowScene: windowScene)

let navigationController = UINavigationController(rootViewController: TvingLoginViewController())
// let navigationController = UINavigationController(rootViewController: TvingLoginViewController())


self.window?.rootViewController = navigationController
self.window?.rootViewController = TabBarController()
self.window?.makeKeyAndVisible()
}
}
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
}
}
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() {}
}


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
}
}
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
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ extension UIColor {
static let color9C9C9C = UIColor(hex: 0x9C9C9C)
static let colorD6D6D6 = UIColor(hex: 0xD6D6D6)
static let colorEFF2F4 = UIColor(hex: 0xEFF2F4)
static let color191919 = UIColor(hex: 0x191919)
}

extension UIColor {
Expand Down
Loading

0 comments on commit 79be06f

Please sign in to comment.