-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBitnagilIcon.swift
More file actions
56 lines (45 loc) · 2.06 KB
/
Copy pathBitnagilIcon.swift
File metadata and controls
56 lines (45 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
// BitnagilIcon.swift
// Presentation
//
// Created by 최정인 on 7/6/25.
//
import UIKit
enum BitnagilIcon {
private static var bundle: Bundle {
return Bundle(for: IntroView.self)
}
static let kakaoIcon = UIImage(named: "kakao_icon", in: bundle, with: nil)
static let appleIcon = UIImage(named: "apple_icon", in: bundle, with: nil)
static let checkIcon = UIImage(named: "check_icon", in: bundle, with: nil)?.withRenderingMode(.alwaysTemplate)
static let plusIcon = UIImage(named: "plus_icon", in: bundle, with: nil)?.withRenderingMode(.alwaysTemplate)
static let chevronIcon = UIImage(named: "chevron_icon", in: bundle, with: nil)
static func chevronIcon(direction: Direction) -> UIImage? {
return BitnagilIcon.chevronIcon?.rotate(degrees: direction.rotation)?.withRenderingMode(.alwaysTemplate)
}
// MARK: - Tab Bar Icons
static let homeFillIcon = UIImage(named: "home_fill_icon", in: bundle, with: nil)
static let homeEmptyIcon = UIImage(named: "home_empty_icon", in: bundle, with: nil)
static let recommendFillIcon = UIImage(named: "recommend_fill_icon",in: bundle, with: nil)
static let recommendEmptyIcon = UIImage(named: "recommend_empty_icon", in: bundle, with: nil)
static let reportFillIcon = UIImage(named: "report_fill_icon", in: bundle, with: nil)?.withRenderingMode(.alwaysOriginal)
static let reportEmptyIcon = UIImage(named: "report_empty_icon", in: bundle, with: nil)?.withRenderingMode(.alwaysOriginal)
static let mypageFillIcon = UIImage(named: "mypage_fill_icon", in: bundle, with: nil)
static let mypageEmptyIcon = UIImage(named: "mypage_empty_icon", in: bundle, with: nil)
static let settingIcon = UIImage(named: "setting_icon", in: bundle, with: nil)
static let chevronRightIcon = UIImage(named: "chevron_right_icon", in: bundle, with: nil)
}
enum Direction {
case up
case down
case left
case right
var rotation: Float {
switch self {
case .up: 90
case .down: -90
case .left: 0
case .right: 180
}
}
}