Skip to content

Commit 87d3819

Browse files
committed
[#78] PageList 수정
1 parent b1f0738 commit 87d3819

3 files changed

Lines changed: 16 additions & 18 deletions

File tree

YDS-Storybook/FoundationSampleViewController/Typography/TypographiesListItemCell.swift

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,15 @@ fileprivate class TypographiesListItemCellDescriptionRow: UIView {
173173
}
174174

175175
private func setupViews() {
176-
176+
setViewHierarchy()
177+
setAutolayout()
178+
}
179+
180+
private func setViewHierarchy() {
177181
self.addSubviews(categoryLabel, propertyLabel)
178-
182+
}
183+
184+
private func setAutolayout() {
179185
self.snp.makeConstraints {
180186
$0.height.equalTo(Dimension.height)
181187
}
@@ -191,7 +197,6 @@ fileprivate class TypographiesListItemCellDescriptionRow: UIView {
191197
$0.trailing.equalToSuperview()
192198
$0.top.bottom.equalToSuperview()
193199
}
194-
195200
}
196201

197202
}

YDS-Storybook/PageListViewController.swift

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class PageListViewController: UIViewController {
1616
// MARK: - tableView에 들어갈 섹션과 셀에 대한 코드입니다.
1717

1818
// 각 섹션의 타이틀로 사용될 문자열입니다.
19-
let sections: [String] = ["0. Rule", "1. Foundation", "2. Atom", "3. Component"]
19+
let sections: [String] = ["1. Foundation", "2. Atom", "3. Component"]
2020

2121

2222
// title은 cell에 표시되는 글자입니다.
@@ -28,9 +28,6 @@ class PageListViewController: UIViewController {
2828

2929

3030
// 여기 아래에 각 단계에 맞는 Page를 추가해주세요.
31-
let rulePages: [Page] = [
32-
Page(title: "Sample", vc: UIViewController.self),
33-
]
3431

3532
let foundationPages: [Page] = [
3633
Page(title: "Color", vc: ColorsPageViewController.self),
@@ -126,12 +123,10 @@ extension PageListViewController: UITableViewDataSource {
126123
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
127124
switch(section) {
128125
case 0:
129-
return rulePages.count
130-
case 1:
131126
return foundationPages.count
132-
case 2:
127+
case 1:
133128
return atomPages.count
134-
case 3:
129+
case 2:
135130
return componentPages.count
136131
default:
137132
return 0
@@ -143,12 +138,10 @@ extension PageListViewController: UITableViewDataSource {
143138

144139
switch(indexPath.section) {
145140
case 0:
146-
page = rulePages[indexPath.row]
147-
case 1:
148141
page = foundationPages[indexPath.row]
149-
case 2:
142+
case 1:
150143
page = atomPages[indexPath.row]
151-
case 3:
144+
case 2:
152145
page = componentPages[indexPath.row]
153146
default:
154147
page = Page(title: "error", vc: UIViewController.self)

YDS.xcodeproj/project.pbxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@
910910
"$(inherited)",
911911
"@executable_path/Frameworks",
912912
);
913-
MARKETING_VERSION = 0.3.2;
913+
MARKETING_VERSION = 0.3.3;
914914
PRODUCT_BUNDLE_IDENTIFIER = "com.yourssu.YDS-Storybook";
915915
PRODUCT_NAME = "$(TARGET_NAME)";
916916
PROVISIONING_PROFILE_SPECIFIER = GithubActions_Dist;
@@ -1109,7 +1109,7 @@
11091109
"$(inherited)",
11101110
"@executable_path/Frameworks",
11111111
);
1112-
MARKETING_VERSION = 0.3.2;
1112+
MARKETING_VERSION = 0.3.3;
11131113
PRODUCT_BUNDLE_IDENTIFIER = "com.yourssu.YDS-Storybook";
11141114
PRODUCT_NAME = "$(TARGET_NAME)";
11151115
SWIFT_VERSION = 5.0;
@@ -1130,7 +1130,7 @@
11301130
"$(inherited)",
11311131
"@executable_path/Frameworks",
11321132
);
1133-
MARKETING_VERSION = 0.3.2;
1133+
MARKETING_VERSION = 0.3.3;
11341134
PRODUCT_BUNDLE_IDENTIFIER = "com.yourssu.YDS-Storybook";
11351135
PRODUCT_NAME = "$(TARGET_NAME)";
11361136
PROVISIONING_PROFILE_SPECIFIER = "";

0 commit comments

Comments
 (0)