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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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" : "anxiety_orb.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "anxiety_orb@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "anxiety_orb@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" : "calm_orb.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "calm_orb@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "calm_orb@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" : "lethargy_orb.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "lethargy_orb@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "lethargy_orb@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" : "satisfied_orb.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "satisfied_orb@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "satisfied_orb@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" : "tired_orb.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "tired_orb@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "tired_orb@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" : "vitality_orb.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "vitality_orb@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "vitality_orb@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,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
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
Expand Up @@ -13,4 +13,12 @@ enum BitnagilGraphic {
}

static let introGraphic = UIImage(named: "IntroGraphic", in: bundle, with: nil)

// MARK: - Emotion Orb
static let calmOrb = UIImage(named: "calm_orb", in: bundle, with: nil)
static let lethargyOrb = UIImage(named: "lethargy_orb", in: bundle, with: nil)
static let vitalityOrb = UIImage(named: "vitality_orb", in: bundle, with: nil)
static let anxietyOrb = UIImage(named: "anxiety_orb", in: bundle, with: nil)
static let satisfiedOrb = UIImage(named: "satisfied_orb", in: bundle, with: nil)
static let tiredOrb = UIImage(named: "tired_orb", in: bundle, with: nil)
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,9 @@ public struct PresentationDependencyAssembler: DependencyAssemblerProtocol {

return MypageViewModel(userDataRepository: userDataRepository)
}

DIContainer.shared.register(type: EmotionRegisterViewModel.self) { _ in
return EmotionRegisterViewModel()
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
//
// EmotionType.swift
// Presentation
//
// Created by 최정인 on 7/28/25.
//

import UIKit

enum EmotionType: CaseIterable {
case calm
case lethargy
case vitality
case anxiety
case satisfied
case tired

var title: String {
switch self {
case .calm: "평온함"
case .lethargy: "무기력함"
case .vitality: "활기참"
case .anxiety: "불안함"
case .satisfied: "만족함"
case .tired: "피로함"
}
}

var image: UIImage? {
switch self {
case .calm: BitnagilGraphic.calmOrb
case .lethargy: BitnagilGraphic.lethargyOrb
case .vitality: BitnagilGraphic.vitalityOrb
case .anxiety: BitnagilGraphic.anxietyOrb
case .satisfied: BitnagilGraphic.satisfiedOrb
case .tired: BitnagilGraphic.tiredOrb
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
//
// EmotionOrbCollectionViewCell.swift
// Presentation
//
// Created by 최정인 on 7/28/25.
//

import SnapKit
import UIKit

final class EmotionOrbCollectionViewCell: UICollectionViewCell {

private enum Layout {
static let emotionOrbImageSize: CGFloat = 96
static let emotionLabelTopSpacing: CGFloat = 6
static let emotionLabelHeight: CGFloat = 24
}

private let emotionOrbImage = UIImageView()
private let emotionLabel = UILabel()

override init(frame: CGRect) {
super.init(frame: frame)
configureAttribute()
configureLayout()
}

required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

private func configureAttribute() {
emotionLabel.text = ""
emotionLabel.textAlignment = .center
emotionLabel.font = BitnagilFont(style: .body1, weight: .regular).font
emotionLabel.textColor = BitnagilColor.gray20
}

private func configureLayout() {
contentView.addSubview(emotionOrbImage)
contentView.addSubview(emotionLabel)

emotionOrbImage.snp.makeConstraints { make in
make.top.equalToSuperview()
make.horizontalEdges.equalToSuperview()
make.size.equalTo(Layout.emotionOrbImageSize)
}

emotionLabel.snp.makeConstraints { make in
make.top.equalTo(emotionOrbImage.snp.bottom).offset(Layout.emotionLabelTopSpacing)
make.horizontalEdges.equalToSuperview()
make.height.equalTo(Layout.emotionLabelHeight)
}
}

func configureCell(emotion: EmotionType) {
emotionOrbImage.image = emotion.image
emotionLabel.text = emotion.title
}
}
Loading
Loading