Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] #33 #43

Merged
merged 5 commits into from
Oct 23, 2022
2 changes: 2 additions & 0 deletions SMSH-Summer/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ target 'SMSH-Summer' do
pod 'NMapsMap','3.15.0'
pod 'Then'
pod 'YPImagePicker'
pod 'PanModal'

end
6 changes: 5 additions & 1 deletion SMSH-Summer/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
PODS:
- Kingfisher (7.3.2)
- NMapsMap (3.15.0)
- PanModal (1.2.7)
- PryntTrimmerView (4.0.2)
- Realm (10.28.6):
- Realm/Headers (= 10.28.6)
Expand All @@ -17,6 +18,7 @@ PODS:
DEPENDENCIES:
- Kingfisher (~> 7.0)
- NMapsMap (= 3.15.0)
- PanModal
- RealmSwift (~> 10)
- SnapKit (~> 5.0.0)
- Then
Expand All @@ -26,6 +28,7 @@ SPEC REPOS:
trunk:
- Kingfisher
- NMapsMap
- PanModal
- PryntTrimmerView
- Realm
- RealmSwift
Expand All @@ -37,6 +40,7 @@ SPEC REPOS:
SPEC CHECKSUMS:
Kingfisher: 0086ad83719761ba9b2cdaf6ef4d5b4878cbae23
NMapsMap: f151761c088d6516064c59da03ab6503769486e6
PanModal: 3e16ead1a907fb06f4df3f13492fd00149fa4974
PryntTrimmerView: 6a43cc90df5d99addeabd33d4ba09b1365322130
Realm: 9b12f16a14446d7d46a9e36225d0a0332a6ec739
RealmSwift: 5927726fce21005f43b1fb57c832297a22031bfc
Expand All @@ -45,6 +49,6 @@ SPEC CHECKSUMS:
Then: 844265ae87834bbe1147d91d5d41a404da2ec27d
YPImagePicker: f36043210c10b0783034eb1947d6e06e31c461e4

PODFILE CHECKSUM: 63b69cc037d6bd173ad0e16cc542dad6b82d1e22
PODFILE CHECKSUM: 164678ee8a8d7d54bfcfd66fa494a96908415af4

COCOAPODS: 1.11.3
5 changes: 5 additions & 0 deletions SMSH-Summer/SMSH-Summer.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@
developmentRegion = ko;
hasScannedForEncodings = 0;
knownRegions = (
ko,
en,
Base,
);
Expand Down Expand Up @@ -852,6 +853,7 @@
DEVELOPMENT_TEAM = F7B353LPM3;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "SMSH-Summer/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "์ข‹์„์ง€๋„";
INFOPLIST_KEY_NSCameraUsageDescription = "์นด๋ฉ”๋ผ์—์„œ ์‚ฌ์ง„์„ ์ดฌ์˜ํ•ด ์„ ํ–‰ ๋‚ด์šฉ์— ์ถ”๊ฐ€ํ•˜๊ธฐ ์œ„ํ•ด ๊ถŒํ•œ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.";
INFOPLIST_KEY_NSLocationAlwaysAndWhenInUseUsageDescription = "์‚ฌ์šฉ์ž์˜ ํ˜„์žฌ ์œ„์น˜ ์ฃผ๋ณ€์˜ ์„ ํ–‰ ๋‚ด์—ญ์„ ๋ณด์—ฌ์ฃผ๊ณ , ํ˜„์žฌ ์œ„์น˜๋กœ ์„ ํ–‰ ๊ธฐ๋ก์„ ํ•˜๊ธฐ ์œ„ํ•ด์„œ ๊ถŒํ•œ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.";
INFOPLIST_KEY_NSLocationAlwaysUsageDescription = "์‚ฌ์šฉ์ž์˜ ํ˜„์žฌ ์œ„์น˜ ์ฃผ๋ณ€์˜ ์„ ํ–‰ ๋‚ด์—ญ์„ ๋ณด์—ฌ์ฃผ๊ณ , ํ˜„์žฌ ์œ„์น˜๋กœ ์„ ํ–‰ ๊ธฐ๋ก์„ ํ•˜๊ธฐ ์œ„ํ•ด์„œ ๊ถŒํ•œ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.";
Expand All @@ -863,6 +865,7 @@
INFOPLIST_KEY_UIMainStoryboardFile = Main;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = UIInterfaceOrientationPortrait;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = UIInterfaceOrientationPortrait;
INFOPLIST_KEY_UIUserInterfaceStyle = Light;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -890,6 +893,7 @@
DEVELOPMENT_TEAM = F7B353LPM3;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "SMSH-Summer/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "์ข‹์„์ง€๋„";
INFOPLIST_KEY_NSCameraUsageDescription = "์นด๋ฉ”๋ผ์—์„œ ์‚ฌ์ง„์„ ์ดฌ์˜ํ•ด ์„ ํ–‰ ๋‚ด์šฉ์— ์ถ”๊ฐ€ํ•˜๊ธฐ ์œ„ํ•ด ๊ถŒํ•œ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.";
INFOPLIST_KEY_NSLocationAlwaysAndWhenInUseUsageDescription = "์‚ฌ์šฉ์ž์˜ ํ˜„์žฌ ์œ„์น˜ ์ฃผ๋ณ€์˜ ์„ ํ–‰ ๋‚ด์—ญ์„ ๋ณด์—ฌ์ฃผ๊ณ , ํ˜„์žฌ ์œ„์น˜๋กœ ์„ ํ–‰ ๊ธฐ๋ก์„ ํ•˜๊ธฐ ์œ„ํ•ด์„œ ๊ถŒํ•œ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.";
INFOPLIST_KEY_NSLocationAlwaysUsageDescription = "์‚ฌ์šฉ์ž์˜ ํ˜„์žฌ ์œ„์น˜ ์ฃผ๋ณ€์˜ ์„ ํ–‰ ๋‚ด์—ญ์„ ๋ณด์—ฌ์ฃผ๊ณ , ํ˜„์žฌ ์œ„์น˜๋กœ ์„ ํ–‰ ๊ธฐ๋ก์„ ํ•˜๊ธฐ ์œ„ํ•ด์„œ ๊ถŒํ•œ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.";
Expand All @@ -901,6 +905,7 @@
INFOPLIST_KEY_UIMainStoryboardFile = Main;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = UIInterfaceOrientationPortrait;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = UIInterfaceOrientationPortrait;
INFOPLIST_KEY_UIUserInterfaceStyle = Light;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"pins" : [
{
"identity" : "panmodal",
"kind" : "remoteSourceControl",
"location" : "https://github.com/slackhq/PanModal",
"state" : {
"revision" : "b012aecb6b67a8e46369227f893c12544846613f",
"version" : "1.2.7"
}
}
],
"version" : 2
}
4 changes: 0 additions & 4 deletions SMSH-Summer/SMSH-Summer/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>ko_KR</string>
<key>UIUserInterfaceStyle</key>
<string>Light</string>
<key>NMFClientId</key>
<string>4bvivlu76q</string>
<key>UIAppFonts</key>
Expand Down
20 changes: 13 additions & 7 deletions SMSH-Summer/SMSH-Summer/Presentation/WriteView/VC/writeVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@

import UIKit

enum WriteSection: Int, CaseIterable {
case place = 0
case typekind
case content
}

class writeVC: UIViewController {

// MARK: - UI Components
Expand Down Expand Up @@ -81,7 +87,7 @@ extension writeVC: UITableViewDelegate {
extension writeVC: UITableViewDataSource {

func numberOfSections(in tableView: UITableView) -> Int {
return 3
return WriteSection.allCases.count
}

func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
Expand All @@ -90,13 +96,13 @@ extension writeVC: UITableViewDataSource {

func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
switch indexPath.section {
case 0:
case WriteSection.place.rawValue:
guard let cell = tableView.dequeueReusableCell(withIdentifier: placeTVC.identifier, for: indexPath) as? placeTVC else { return UITableViewCell() }
return cell
case 1:
case WriteSection.typekind.rawValue:
guard let cell = tableView.dequeueReusableCell(withIdentifier: typeTVC.identifier, for: indexPath) as? typeTVC else { return UITableViewCell() }
return cell
case 2:
case WriteSection.content.rawValue:
guard let cell = tableView.dequeueReusableCell(withIdentifier: contentTVC.identifier, for: indexPath) as? contentTVC else { return UITableViewCell() }
return cell
default:
Expand All @@ -108,11 +114,11 @@ extension writeVC: UITableViewDataSource {
let width = UIScreen.main.bounds.size.width

switch indexPath.section {
case 0:
case WriteSection.place.rawValue:
return width * 0.344
case 1:
case WriteSection.typekind.rawValue:
return width * 0.38
case 2:
case WriteSection.content.rawValue:
return 500
default:
return 200
Expand Down