Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
286 changes: 280 additions & 6 deletions Wable-iOS.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Wable-iOS/Application/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let windowScene = (scene as? UIWindowScene) else { return }
self.window = UIWindow(windowScene: windowScene)
let navigationController = UINavigationController(rootViewController: ViewController())
let navigationController = UINavigationController(rootViewController: WableTabBarController())
self.window?.rootViewController = navigationController
self.window?.makeKeyAndVisible()
}
Expand Down
58 changes: 58 additions & 0 deletions Wable-iOS/Global/Extention/Adjusted+.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
//
// Adjusted+.swift
// Wable-iOS
//
// Created by 박윤빈 on 8/6/24.
//

import UIKit

extension CGFloat {
var adjusted: CGFloat {
return adjustedW
}

var adjustedW: CGFloat {
return self * adjustedRatio
}

var adjustedH: CGFloat {
return self * adjustedHRatio
}

private var adjustedRatio: CGFloat {
return UIScreen.main.bounds.width / 375
}

private var adjustedHRatio: CGFloat {
return UIScreen.main.bounds.height / 667
}
}

extension Int {
var adjusted: CGFloat {
return CGFloat(self).adjusted
}

var adjustedW: CGFloat {
return CGFloat(self).adjustedW
}

var adjustedH: CGFloat {
return CGFloat(self).adjustedH
}
}

extension Double {
var adjusted: CGFloat {
return CGFloat(self).adjusted
}

var adjustedW: CGFloat {
return CGFloat(self).adjustedW
}

var adjustedH: CGFloat {
return CGFloat(self).adjustedH
}
}
31 changes: 31 additions & 0 deletions Wable-iOS/Global/Extention/UIFont+.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
//
// UIFont+.swift
// Wable-iOS
//
// Created by 박윤빈 on 8/6/24.
//

import UIKit

enum AppFontName: String {
case semiBoldFont = "Pretendard-SemiBold"
case regularFont = "Pretendard-Regular"
}

extension UIFont {

class var head0: UIFont { return UIFont(name: AppFontName.semiBoldFont.rawValue, size: 24.adjusted)! }
class var head1: UIFont { return UIFont(name: AppFontName.semiBoldFont.rawValue, size: 20.adjusted)! }
class var head2: UIFont { return UIFont(name: AppFontName.semiBoldFont.rawValue, size: 18.adjusted)! }

class var body1: UIFont { return UIFont(name: AppFontName.semiBoldFont.rawValue, size: 16.adjusted)! }
class var body2: UIFont { return UIFont(name: AppFontName.regularFont.rawValue, size: 16.adjusted)! }
class var body3: UIFont { return UIFont(name: AppFontName.semiBoldFont.rawValue, size: 14.adjusted)! }
class var body4: UIFont { return UIFont(name: AppFontName.regularFont.rawValue, size: 14.adjusted)! }

class var caption1: UIFont { return UIFont(name: AppFontName.semiBoldFont.rawValue, size: 13.adjusted)! }
class var caption2: UIFont { return UIFont(name: AppFontName.regularFont.rawValue, size: 13.adjusted)! }
class var caption3: UIFont { return UIFont(name: AppFontName.semiBoldFont.rawValue, size: 12.adjusted)! }
class var caption4: UIFont { return UIFont(name: AppFontName.regularFont.rawValue, size: 12.adjusted)! }

}
17 changes: 17 additions & 0 deletions Wable-iOS/Global/Extention/UIView+.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// UIView+.swift
// Wable-iOS
//
// Created by 박윤빈 on 8/6/24.
//

import UIKit

extension UIView {
func addSubviews(_ views: UIView...) {
views.forEach {
self.addSubview($0)
}
}
}

102 changes: 102 additions & 0 deletions Wable-iOS/Global/Literals/ImageLiterals.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
//
// ImageLiterals.swift
// Wable-iOS
//
// Created by 박윤빈 on 8/6/24.
//

import UIKit

enum ImageLiterals {
enum Button {
static var btnApple: UIImage { .load(name: "btn_apple") }
static var btnCheckboxActive: UIImage { .load(name: "btn_checkbox_active") }
static var btnCheckboxDefault: UIImage { .load(name: "btn_checkbox_default") }
static var btnCheckboxVariant: UIImage { .load(name: "btn_checkbox_variant") }
static var btnDropdownDown: UIImage { .load(name: "btn_dropdown_down") }
static var btnDropdownUp: UIImage { .load(name: "btn_dropdown_up") }
static var btnGhostDefaultLarge: UIImage { .load(name: "btn_ghost_default_large") }
static var btnGhostDefaultSmall: UIImage { .load(name: "btn_ghost_default_small") }
static var btnGhostDisabledLarge: UIImage { .load(name: "btn_ghost_disabled_large") }
static var btnGhostDisabledSmall: UIImage { .load(name: "btn_ghost_disabled_small") }
static var btnKakao: UIImage { .load(name: "btn_kakao") }
static var btnNext: UIImage { .load(name: "btn_next") }
static var btnRippleDefault: UIImage { .load(name: "btn_ripple_default") }
static var btnRipplePress: UIImage { .load(name: "btn_ripple_press") }
static var btnWrite: UIImage { .load(name: "btn_write") }
}

enum Icon {
static var icBack: UIImage { .load(name: "ic_back") }
static var icChange: UIImage { .load(name: "ic_change") }
static var icDelete: UIImage { .load(name: "ic_delete") }
static var icEdit: UIImage { .load(name: "ic_edit") }
static var icGhostDefault: UIImage { .load(name: "ic_ghost_default") }
static var icGhostDisabled: UIImage { .load(name: "ic_ghost_disabled") }
static var icHeartDefault: UIImage { .load(name: "ic_heart_default") }
static var icHeartPress: UIImage { .load(name: "ic_heart_press") }
static var icHomeDefault: UIImage { .load(name: "ic_home_default") }
static var icHomePress: UIImage { .load(name: "ic_home_press") }
static var icInfoDefault: UIImage { .load(name: "ic_info_default") }
static var icInfoPress: UIImage { .load(name: "ic_info_press") }
static var icMeatball: UIImage { .load(name: "ic_meatball") }
static var icMyDefault: UIImage { .load(name: "ic_my_default") }
static var icMyPress: UIImage { .load(name: "ic_my_press") }
static var icNotiBadge: UIImage { .load(name: "ic_noti_badge") }
static var icNotiDefault: UIImage { .load(name: "ic_noti_default") }
static var icNotiPress: UIImage { .load(name: "ic_noti_press") }
static var icPhoto: UIImage { .load(name: "ic_photo") }
static var icPlus: UIImage { .load(name: "ic_plus") }
static var icProfileplus: UIImage { .load(name: "ic_profileplus") }
static var icReport: UIImage { .load(name: "ic_report") }
static var icRipple: UIImage { .load(name: "ic_ripple") }
static var icX: UIImage { .load(name: "ic_x") }
}

enum Image {
static var imgProfileLarge: UIImage { .load(name: "img_profile_large") }
static var imgProfileMedium: UIImage { .load(name: "img_profile_medium") }
static var imgProfileSmall: UIImage { .load(name: "img_profile_small") }
static var imgProfileXsmall: UIImage { .load(name: "img_profile_xsmall") }
}

enum Logo {
static var logoSymbolLarge: UIImage { .load(name: "logo_symbol_large") }
static var logoSymbolSmall: UIImage { .load(name: "logo_symbol_small") }
static var logoType: UIImage { .load(name: "logo_type") }
}

enum Toast {
static var toastProgress: UIImage { .load(name: "toast_progress") }
static var toastStatus: UIImage { .load(name: "toast_status") }
static var toastSuccess: UIImage { .load(name: "toast_success") }
static var toastWarning: UIImage { .load(name: "toast_warning") }
}

enum Tag {
static var tagBro: UIImage { .load(name: "tag_Bro") }
static var tagDk: UIImage { .load(name: "tag_Dk") }
static var tagDrx: UIImage { .load(name: "tag_Drx") }
static var tagFox: UIImage { .load(name: "tag_Fox") }
static var tagGen: UIImage { .load(name: "tag_Gen") }
static var tagHle: UIImage { .load(name: "tag_Hle") }
static var tagKdf: UIImage { .load(name: "tag_Kdf") }
static var tagKt: UIImage { .load(name: "tag_Kt") }
static var tagNs: UIImage { .load(name: "tag_Ns") }
static var tagT1: UIImage { .load(name: "tag_T1") }
static var tagEnd: UIImage { .load(name: "tag_end") }
static var tagProgress: UIImage { .load(name: "tag_progress") }
static var tagTodo: UIImage { .load(name: "tag_todo") }

}
}

extension UIImage {
static func load(name: String) -> UIImage {
guard let image = UIImage(named: name, in: nil, compatibleWith: nil) else {
return UIImage()
}
image.accessibilityIdentifier = name
return image
}
}
19 changes: 19 additions & 0 deletions Wable-iOS/Global/Literals/StringLiterals.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// StringLiterals.swift
// Wable-iOS
//
// Created by 박윤빈 on 8/6/24.
//

import UIKit

enum StringLiterals {
enum TabBar {
static let home = "홈"
static let info = "소식"
static let noti = "알림"
static let my = "마이"

}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "Status=Apple.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Status=Apple@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Status=Apple@3x.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" : "Status=active.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Status=active@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Status=active@3x.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" : "Status=Default.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Status=Default@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Status=Default@3x.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.
Loading