Skip to content

Commit 5dd07fa

Browse files
committed
feature: WuxiaInfo, WuxiaSubInfo model 생성 및 더미데이터 추가
1 parent 95dcbab commit 5dd07fa

File tree

4 files changed

+60
-50
lines changed

4 files changed

+60
-50
lines changed

WuxiaMeditation.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
/* Begin PBXBuildFile section */
1010
3A42B9F22C63AFA200F8CEC7 /* WuxiaInfoView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A42B9F12C63AFA200F8CEC7 /* WuxiaInfoView.swift */; };
11+
3A42B9F42C63CD0000F8CEC7 /* WuxiaInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A42B9F32C63CD0000F8CEC7 /* WuxiaInfo.swift */; };
1112
3A5AFB6B2C1CA6FD0093D449 /* WuxiaMeditationApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A5AFB6A2C1CA6FD0093D449 /* WuxiaMeditationApp.swift */; };
1213
3A5AFB6D2C1CA6FD0093D449 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A5AFB6C2C1CA6FD0093D449 /* ContentView.swift */; };
1314
3A5AFB712C1CA6FE0093D449 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3A5AFB702C1CA6FE0093D449 /* Assets.xcassets */; };
@@ -38,6 +39,7 @@
3839

3940
/* Begin PBXFileReference section */
4041
3A42B9F12C63AFA200F8CEC7 /* WuxiaInfoView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WuxiaInfoView.swift; sourceTree = "<group>"; };
42+
3A42B9F32C63CD0000F8CEC7 /* WuxiaInfo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WuxiaInfo.swift; sourceTree = "<group>"; };
4143
3A5AFB672C1CA6FD0093D449 /* WuxiaMeditation.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WuxiaMeditation.app; sourceTree = BUILT_PRODUCTS_DIR; };
4244
3A5AFB6A2C1CA6FD0093D449 /* WuxiaMeditationApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WuxiaMeditationApp.swift; sourceTree = "<group>"; };
4345
3A5AFB6C2C1CA6FD0093D449 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
@@ -138,6 +140,7 @@
138140
3A5AFB962C1CBD5F0093D449 /* EneryState.swift */,
139141
3A5AFB982C1CC46B0093D449 /* MeditationSentence.swift */,
140142
3ABBCE8A2C5F5A3100D453A0 /* MeditationState.swift */,
143+
3A42B9F32C63CD0000F8CEC7 /* WuxiaInfo.swift */,
141144
);
142145
path = Model;
143146
sourceTree = "<group>";
@@ -321,6 +324,7 @@
321324
3A5AFB862C1CAC8B0093D449 /* MainView.swift in Sources */,
322325
3A5AFB932C1CBC190093D449 /* Date+.swift in Sources */,
323326
3A5AFB972C1CBD5F0093D449 /* EneryState.swift in Sources */,
327+
3A42B9F42C63CD0000F8CEC7 /* WuxiaInfo.swift in Sources */,
324328
);
325329
runOnlyForDeploymentPostprocessing = 0;
326330
};
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
//
2+
// WuxiaInfo.swift
3+
// 운기조식
4+
//
5+
// Created by Austin's Macbook Pro M3 on 8/8/24.
6+
//
7+
8+
import SwiftUI
9+
10+
struct WuxiaInfo: Identifiable {
11+
let id = UUID()
12+
var title: String
13+
var infoList: [WuxiaSubInfo]
14+
}
15+
16+
struct WuxiaSubInfo: Identifiable {
17+
let id = UUID()
18+
var title: String?
19+
var description: [String]
20+
}
21+
22+
extension WuxiaInfo {
23+
static let dummyInfoList: [WuxiaInfo] = [
24+
WuxiaInfo(title: "시 時", infoList: [
25+
WuxiaSubInfo(title: "자시(子時): 23:00 ~ 01:00", description: ["하루의 시작으로, 자정(午夜)을 포함합니다."]),
26+
WuxiaSubInfo(title: "축시(丑時): 01:00 ~ 03:00", description: ["소가 여물음을 되새김질하는 시간입니다."]),
27+
WuxiaSubInfo(title: "인시(寅時): 03:00 ~ 05:00", description: ["호랑이가 활동하기 시작하는 시간입니다."]),
28+
WuxiaSubInfo(title: "묘시(卯時): 05:00 ~ 07:00", description: ["토끼가 뛸 수 있는 새벽의 시간입니다. 이 시간대에는 해가 떠오르기 시작합니다."]),
29+
WuxiaSubInfo(title: "진시(辰時): 07:00 ~ 09:00", description: ["용이 하늘로 올라간다고 표현되는 아침 시간입니다."]),
30+
WuxiaSubInfo(title: "사시(巳時): 09:00 ~ 11:00", description: ["뱀이 활동하는 시간으로, 해가 중천에 떠 있는 시간대입니다."]),
31+
WuxiaSubInfo(title: "오시(午時): 11:00 ~ 13:00", description: ["말이 힘차게 달리는 정오의 시간입니다."]),
32+
WuxiaSubInfo(title: "미시(未時): 13:00 ~ 15:00", description: ["양이 풀을 뜯는 오후의 시간대입니다."]),
33+
WuxiaSubInfo(title: "신시(申時): 15:00 ~ 17:00", description: ["원숭이가 활발히 움직이는 시간으로, 오후 늦은 시간입니다."]),
34+
WuxiaSubInfo(title: "유시(酉時): 17:00 ~ 19:00", description: ["닭이 집으로 돌아오는 저녁 시간입니다."]),
35+
WuxiaSubInfo(title: "술시(戌時): 19:00 ~ 21:00", description: ["개가 밤을 지키기 위해 움직이는 시간입니다."]),
36+
WuxiaSubInfo(title: "해시(亥時): 21:00 ~ 23:00", description: ["돼지가 잠을 자는 밤의 시간대로, 하루의 끝을 의미합니다."]),
37+
]),
38+
WuxiaInfo(title: "소주천과 대주천 小周天 大周天", infoList: [
39+
WuxiaSubInfo(title: "소주천 (小周天)", description: [
40+
"(운기조식 앱에서는 1분 내외의 시간동안 운기조식하는 것으로 사용됩니다.)",
41+
"소주천은 작은 순환을 뜻하며, 주로 인체의 두 가지 주요 경락인 임맥(任脈)과 독맥(督脈)을 따라 기가 순환하는 것을 말합니다.",
42+
]),
43+
WuxiaSubInfo(title: "대주천 (大周天)", description: [
44+
"(운기조식 앱에서는 10분 내외의 시간동안 운기조식하는 것으로 사용됩니다.)",
45+
"대주천은 큰 순환을 뜻하며, 소주천보다 더 넓은 범위의 경락을 따라 기가 순환하는 것을 의미합니다. 대주천은 소주천에서 다루지 않는 12경락(十二經絡) 전체를 포함하며, 이는 인체 전체를 아우르는 더 복잡하고 깊은 기의 순환을 뜻합니다.",
46+
]),
47+
]),
48+
WuxiaInfo(title: "단전", infoList: [
49+
WuxiaSubInfo(description: [
50+
"(운기조식 앱에서는 마음의 상태, 안정도에 대한 의미로 사용됩니다.)",
51+
"단전(丹田)은 전통적인 동양 철학, 특히 도교와 기공 수련에서 매우 중요한 개념으로, 인체에 존재하는 세 개의 주요 에너지 센터를 가리킵니다. ",
52+
"이 단전은 기(氣)가 모이고 축적되는 곳으로 여겨지며, 신체와 정신의 균형을 유지하고 에너지를 조절하는 데 중요한 역할을 합니다.",
53+
]),
54+
]),
55+
]
56+
}

WuxiaMeditation/View/WuxiaInfoView.swift

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -7,55 +7,6 @@
77

88
import SwiftUI
99

10-
struct WuxiaInfo: Identifiable {
11-
let id = UUID()
12-
var title: String
13-
var infoList: [WuxiaSubInfo]
14-
}
15-
16-
struct WuxiaSubInfo: Identifiable {
17-
let id = UUID()
18-
var title: String?
19-
var description: [String]
20-
}
21-
22-
extension WuxiaInfo {
23-
static let dummyInfoList: [WuxiaInfo] = [
24-
WuxiaInfo(title: "시 時", infoList: [
25-
WuxiaSubInfo(title: "자시(子時): 23:00 ~ 01:00", description: ["하루의 시작으로, 자정(午夜)을 포함합니다."]),
26-
WuxiaSubInfo(title: "축시(丑時): 01:00 ~ 03:00", description: ["소가 여물음을 되새김질하는 시간입니다."]),
27-
WuxiaSubInfo(title: "인시(寅時): 03:00 ~ 05:00", description: ["호랑이가 활동하기 시작하는 시간입니다."]),
28-
WuxiaSubInfo(title: "묘시(卯時): 05:00 ~ 07:00", description: ["토끼가 뛸 수 있는 새벽의 시간입니다. 이 시간대에는 해가 떠오르기 시작합니다."]),
29-
WuxiaSubInfo(title: "진시(辰時): 07:00 ~ 09:00", description: ["용이 하늘로 올라간다고 표현되는 아침 시간입니다."]),
30-
WuxiaSubInfo(title: "사시(巳時): 09:00 ~ 11:00", description: ["뱀이 활동하는 시간으로, 해가 중천에 떠 있는 시간대입니다."]),
31-
WuxiaSubInfo(title: "오시(午時): 11:00 ~ 13:00", description: ["말이 힘차게 달리는 정오의 시간입니다."]),
32-
WuxiaSubInfo(title: "미시(未時): 13:00 ~ 15:00", description: ["양이 풀을 뜯는 오후의 시간대입니다."]),
33-
WuxiaSubInfo(title: "신시(申時): 15:00 ~ 17:00", description: ["원숭이가 활발히 움직이는 시간으로, 오후 늦은 시간입니다."]),
34-
WuxiaSubInfo(title: "유시(酉時): 17:00 ~ 19:00", description: ["닭이 집으로 돌아오는 저녁 시간입니다."]),
35-
WuxiaSubInfo(title: "술시(戌時): 19:00 ~ 21:00", description: ["개가 밤을 지키기 위해 움직이는 시간입니다."]),
36-
WuxiaSubInfo(title: "해시(亥時): 21:00 ~ 23:00", description: ["돼지가 잠을 자는 밤의 시간대로, 하루의 끝을 의미합니다."]),
37-
]),
38-
WuxiaInfo(title: "소주천과 대주천 小周天 大周天", infoList: [
39-
WuxiaSubInfo(title: "소주천 (小周天)", description: [
40-
"(운기조식 앱에서는 1분 내외의 시간동안 운기조식하는 것으로 사용됩니다.)",
41-
"소주천은 작은 순환을 뜻하며, 주로 인체의 두 가지 주요 경락인 임맥(任脈)과 독맥(督脈)을 따라 기가 순환하는 것을 말합니다.",
42-
]),
43-
WuxiaSubInfo(title: "대주천 (大周天)", description: [
44-
"(운기조식 앱에서는 10분 내외의 시간동안 운기조식하는 것으로 사용됩니다.)",
45-
"대주천은 큰 순환을 뜻하며, 소주천보다 더 넓은 범위의 경락을 따라 기가 순환하는 것을 의미합니다. 대주천은 소주천에서 다루지 않는 12경락(十二經絡) 전체를 포함하며, 이는 인체 전체를 아우르는 더 복잡하고 깊은 기의 순환을 뜻합니다.",
46-
]),
47-
]),
48-
WuxiaInfo(title: "단전", infoList: [
49-
WuxiaSubInfo(description: [
50-
"(운기조식 앱에서는 마음의 상태, 안정도에 대한 의미로 사용됩니다.)",
51-
"단전(丹田)은 전통적인 동양 철학, 특히 도교와 기공 수련에서 매우 중요한 개념으로, 인체에 존재하는 세 개의 주요 에너지 센터를 가리킵니다. ",
52-
"이 단전은 기(氣)가 모이고 축적되는 곳으로 여겨지며, 신체와 정신의 균형을 유지하고 에너지를 조절하는 데 중요한 역할을 합니다.",
53-
]),
54-
]),
55-
]
56-
}
57-
58-
5910
struct WuxiaInfoView: View {
6011
var body: some View {
6112
ZStack {
@@ -100,7 +51,6 @@ struct WuxiaInfoView: View {
10051
}
10152
}
10253
.font(.customBody)
103-
10454
}
10555
}
10656
.padding()

0 commit comments

Comments
 (0)