Skip to content
Open
Show file tree
Hide file tree
Changes from 6 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" : "badge_background_graphic.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "badge_background_graphic@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "badge_background_graphic@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" : "emotion_multiple_badge.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "emotion_multiple_badge@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "emotion_multiple_badge@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" : "emotion_single_badge.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "emotion_single_badge@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "emotion_single_badge@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" : "none_badge.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "none_badge@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "none_badge@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" : "report_multiple_badge.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "report_multiple_badge@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "report_multiple_badge@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" : "report_single_badge.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "report_single_badge@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "report_single_badge@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" : "routine_multiple_badge.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "routine_multiple_badge@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "routine_multiple_badge@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" : "routine_single_badge.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "routine_single_badge@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "routine_single_badge@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,47 @@
//
// ActivityBadge.swift
// Presentation
//
// Created by 최정인 on 7/7/26.
//

import UIKit

enum ActivityBadge {
case emotionBadge
case routineBadge
case reportBadge

var badgeTitle: String {
switch self {
case .emotionBadge: "점점 감정에\n솔직해지고 계시네요!"
case .routineBadge: "큰 성취를\n이루셨군요, 대단해요!"
case .reportBadge: "덕분에 도시가\n개선되고 있어요!"
}
}

var expertTitle: String? {
switch self {
case .emotionBadge: "의욕 전문가"
case .routineBadge: "체크 전문가"
case .reportBadge: "외출 전문가"
}
}

// TODO: 추후 서버에서 이미지 url 값을 받는다면, 수정될 가능성 있음
var singleImage: UIImage? {
switch self {
case .emotionBadge: BitnagilGraphic.emotionSingleBadgeGraphic
case .routineBadge: BitnagilGraphic.routineSingleBadgeGraphic
case .reportBadge: BitnagilGraphic.reportSingleBadgeGraphic
}
}

var multipleImage: UIImage? {
switch self {
case .emotionBadge: BitnagilGraphic.emotionMultipleBadgeGraphic
case .routineBadge: BitnagilGraphic.routineMultipleBadgeGraphic
case .reportBadge: BitnagilGraphic.reportMultipleBadgeGraphic
}
}
}
Loading
Loading