Skip to content

Commit

Permalink
YAPP-19th#61 - 프로필 수정 뷰 기본 UI 구성
Browse files Browse the repository at this point in the history
  • Loading branch information
ITlearning committed Jan 10, 2022
1 parent 8ed69c3 commit 334acb1
Show file tree
Hide file tree
Showing 15 changed files with 422 additions and 28 deletions.
17 changes: 16 additions & 1 deletion Budi/Budi.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@
A8E03CD4278C693C0074DE4B /* LocationReplaceTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = A8E03CD2278C693C0074DE4B /* LocationReplaceTableViewCell.xib */; };
A8E03CD7278C6B030074DE4B /* PositionTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8E03CD5278C6B030074DE4B /* PositionTableViewCell.swift */; };
A8E03CD8278C6B030074DE4B /* PositionTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = A8E03CD6278C6B030074DE4B /* PositionTableViewCell.xib */; };
A8E03CDB278C79870074DE4B /* ProjectTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8E03CD9278C79870074DE4B /* ProjectTableViewCell.swift */; };
A8E03CDC278C79870074DE4B /* ProjectTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = A8E03CDA278C79870074DE4B /* ProjectTableViewCell.xib */; };
A8E03CDE278C7C3E0074DE4B /* MyBudiEditHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8E03CDD278C7C3E0074DE4B /* MyBudiEditHeaderView.swift */; };
A8E03CE0278C7C680074DE4B /* MyBudiEditHeaderView.xib in Resources */ = {isa = PBXBuildFile; fileRef = A8E03CDF278C7C680074DE4B /* MyBudiEditHeaderView.xib */; };
B92D54F9274C02EB00D0E851 /* .swiftlint.yml in Resources */ = {isa = PBXBuildFile; fileRef = B92D54F8274C02EB00D0E851 /* .swiftlint.yml */; };
B92D5505274C03AB00D0E851 /* Post.swift in Sources */ = {isa = PBXBuildFile; fileRef = B92D5504274C03AA00D0E851 /* Post.swift */; };
B94D2D9A277DE9E700DD7FDD /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = B94D2D99277DE9E700DD7FDD /* GoogleService-Info.plist */; };
Expand Down Expand Up @@ -416,6 +420,10 @@
A8E03CD2278C693C0074DE4B /* LocationReplaceTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = LocationReplaceTableViewCell.xib; sourceTree = "<group>"; };
A8E03CD5278C6B030074DE4B /* PositionTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PositionTableViewCell.swift; sourceTree = "<group>"; };
A8E03CD6278C6B030074DE4B /* PositionTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = PositionTableViewCell.xib; sourceTree = "<group>"; };
A8E03CD9278C79870074DE4B /* ProjectTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProjectTableViewCell.swift; sourceTree = "<group>"; };
A8E03CDA278C79870074DE4B /* ProjectTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ProjectTableViewCell.xib; sourceTree = "<group>"; };
A8E03CDD278C7C3E0074DE4B /* MyBudiEditHeaderView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyBudiEditHeaderView.swift; sourceTree = "<group>"; };
A8E03CDF278C7C680074DE4B /* MyBudiEditHeaderView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MyBudiEditHeaderView.xib; sourceTree = "<group>"; };
B92D54F8274C02EB00D0E851 /* .swiftlint.yml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.yaml; path = .swiftlint.yml; sourceTree = "<group>"; };
B92D54FE274C037E00D0E851 /* String+date.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "String+date.swift"; sourceTree = "<group>"; };
B92D5501274C039C00D0E851 /* HomeContentViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HomeContentViewModel.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -612,6 +620,10 @@
A8E03CD2278C693C0074DE4B /* LocationReplaceTableViewCell.xib */,
A8E03CD5278C6B030074DE4B /* PositionTableViewCell.swift */,
A8E03CD6278C6B030074DE4B /* PositionTableViewCell.xib */,
A8E03CD9278C79870074DE4B /* ProjectTableViewCell.swift */,
A8E03CDA278C79870074DE4B /* ProjectTableViewCell.xib */,
A8E03CDD278C7C3E0074DE4B /* MyBudiEditHeaderView.swift */,
A8E03CDF278C7C680074DE4B /* MyBudiEditHeaderView.xib */,
);
path = Cells;
sourceTree = "<group>";
Expand Down Expand Up @@ -1191,6 +1203,7 @@
buildActionMask = 2147483647;
files = (
A8E03CD0278C68A40074DE4B /* NormalTextFieldTableViewCell.xib in Resources */,
A8E03CDC278C79870074DE4B /* ProjectTableViewCell.xib in Resources */,
B92D54F9274C02EB00D0E851 /* .swiftlint.yml in Resources */,
5E43FB3E278A95EF0073574F /* ChattingProjectRequestCell.xib in Resources */,
5E820B8B2769F04A004A03E9 /* ProjectMembersBottomDetailCell.xib in Resources */,
Expand All @@ -1200,6 +1213,7 @@
5EB430362758953000283239 /* HomeWritingOnlineCell.xib in Resources */,
5EB4302A2758950400283239 /* HomeWritingNameCell.xib in Resources */,
5EFB0A5B27341C1100F39A4D /* ChattingTimeCell.xib in Resources */,
A8E03CE0278C7C680074DE4B /* MyBudiEditHeaderView.xib in Resources */,
5EA453A12731778000943C94 /* HomeDetailMainCell.xib in Resources */,
B94D2D9A277DE9E700DD7FDD /* GoogleService-Info.plist in Resources */,
5EB430322758952500283239 /* HomeWritingDurationCell.xib in Resources */,
Expand Down Expand Up @@ -1319,6 +1333,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A8E03CDE278C7C3E0074DE4B /* MyBudiEditHeaderView.swift in Sources */,
B9684168277853F3002F5D3D /* alertView.swift in Sources */,
B9684167277853EF002F5D3D /* HomeContentViewModel.swift in Sources */,
B9684166277853E7002F5D3D /* HomeContainerViewController.swift in Sources */,
Expand All @@ -1333,8 +1348,8 @@
B968415F277853BC002F5D3D /* ProjectHistory.swift in Sources */,
5E9150A62772356A000578D4 /* MyBudiEditCellType.swift in Sources */,
5E88636E2767450A0022397A /* HomeWritingCellType.swift in Sources */,
5E820B7B2769E9D7004A03E9 /* HomeWritingMembersDetailPartBottomCell.swift in Sources */,
A8E03CD3278C693C0074DE4B /* LocationReplaceTableViewCell.swift in Sources */,
A8E03CDB278C79870074DE4B /* ProjectTableViewCell.swift in Sources */,
5E8863822767AE190022397A /* HomeWritingImageBottomCell.swift in Sources */,
5EF986CA2786E58600874A40 /* Leader.swift in Sources */,
A8CE1196278B1F91008AFEBC /* MyBudiContentViewController.swift in Sources */,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="활동지역" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jCU-Fb-r7H">
<rect key="frame" x="8" y="16" width="48.5" height="17"/>
<rect key="frame" x="16" y="16" width="48.5" height="17"/>
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="14"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
Expand Down Expand Up @@ -70,7 +70,7 @@
<constraint firstItem="gry-dR-8wz" firstAttribute="top" secondItem="yEt-5g-y2m" secondAttribute="bottom" constant="8" id="ge0-Bm-Eak"/>
<constraint firstItem="FxT-Va-Dqg" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="hPj-m5-whX"/>
<constraint firstItem="yEt-5g-y2m" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="16" id="l7F-BD-O8b"/>
<constraint firstItem="jCU-Fb-r7H" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="8" id="ss3-Jx-1nx"/>
<constraint firstItem="jCU-Fb-r7H" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="16" id="ss3-Jx-1nx"/>
<constraint firstItem="yEt-5g-y2m" firstAttribute="top" secondItem="jCU-Fb-r7H" secondAttribute="bottom" constant="16" id="uGh-N8-Ha7"/>
</constraints>
</tableViewCellContentView>
Expand Down
23 changes: 23 additions & 0 deletions Budi/Budi/Source/MyBudi/Edit/Cells/MyBudiEditHeaderView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//
// MyBudiEditHeaderView.swift
// Budi
//
// Created by 인병윤 on 2022/01/10.
//

import UIKit

class MyBudiEditHeaderView: UITableViewHeaderFooterView {

static let cellId = "MyBudiEditHeaderView"

@IBOutlet weak var headerLabel: UILabel!
override func prepareForReuse() {
super.prepareForReuse()

}

func configureHeader(header: String) {
headerLabel.text = header
}
}
55 changes: 55 additions & 0 deletions Budi/Budi/Source/MyBudi/Edit/Cells/MyBudiEditHeaderView.xib
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="19455" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19454"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="MyBudiEditHeaderView" customModule="Budi" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="50"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="g14-BE-BbO">
<rect key="frame" x="0.0" y="0.0" width="375" height="50"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="프로젝트" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mFA-6Q-qhF">
<rect key="frame" x="16" y="15" width="48.5" height="17"/>
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="14"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="mFA-6Q-qhF" firstAttribute="top" secondItem="g14-BE-BbO" secondAttribute="top" constant="15" id="jkf-eZ-s8R"/>
<constraint firstItem="mFA-6Q-qhF" firstAttribute="leading" secondItem="g14-BE-BbO" secondAttribute="leading" constant="16" id="xYV-qV-EHA"/>
</constraints>
</view>
</subviews>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="g14-BE-BbO" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="ON5-5h-UTL"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="bottom" secondItem="g14-BE-BbO" secondAttribute="bottom" id="cWd-WF-8Hc"/>
<constraint firstItem="g14-BE-BbO" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="nYp-fV-nYv"/>
<constraint firstAttribute="trailing" secondItem="g14-BE-BbO" secondAttribute="trailing" id="ndk-yP-Eth"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<connections>
<outlet property="headerLabel" destination="mFA-6Q-qhF" id="6Vo-Vg-2WG"/>
</connections>
<point key="canvasLocation" x="226.81159420289856" y="316.07142857142856"/>
</view>
</objects>
<resources>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import UIKit

class NormalTextFieldTableViewCell: UITableViewCell {

static let cellId = "NormalTableViewCell"
static let cellId = "NormalTextFieldTableViewCell"

@IBOutlet weak var normalTitleLabel: UILabel!
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
Expand All @@ -21,5 +22,8 @@ class NormalTextFieldTableViewCell: UITableViewCell {

// Configure the view for the selected state
}


func configureLabel(text: String) {
normalTitleLabel.text = text
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="NormalTableViewCell" id="KGk-i7-Jjw" customClass="NormalTextFieldTableViewCell" customModule="Budi" customModuleProvider="target">
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="NormalTextFieldTableViewCell" id="KGk-i7-Jjw" customClass="NormalTextFieldTableViewCell" customModule="Budi" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="109"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
Expand All @@ -22,8 +22,8 @@
<rect key="frame" x="0.0" y="0.0" width="375" height="109"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="MainTitle" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="6Kl-4G-e9g">
<rect key="frame" x="16" y="20" width="69" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<rect key="frame" x="16" y="20" width="61.5" height="17"/>
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="14"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
Expand Down Expand Up @@ -54,6 +54,9 @@
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="normalTitleLabel" destination="6Kl-4G-e9g" id="rHW-Lc-tts"/>
</connections>
<point key="canvasLocation" x="132.60869565217394" y="83.370535714285708"/>
</tableViewCell>
</objects>
Expand Down
4 changes: 2 additions & 2 deletions Budi/Budi/Source/MyBudi/Edit/Cells/PositionTableViewCell.xib
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="상세직무" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Aou-ZQ-PdT">
<rect key="frame" x="16" y="20" width="59" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<rect key="frame" x="16" y="20" width="48.5" height="17"/>
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="14"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
Expand Down
30 changes: 30 additions & 0 deletions Budi/Budi/Source/MyBudi/Edit/Cells/ProjectTableViewCell.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//
// ProjectTableViewCell.swift
// Budi
//
// Created by 인병윤 on 2022/01/10.
//

import UIKit

class ProjectTableViewCell: UITableViewCell {

static let cellId = "ProjectTableViewCell"

@IBOutlet weak var selectView: UIView!
@IBOutlet weak var addButton: UIButton!
override func awakeFromNib() {
super.awakeFromNib()
selectView.isHidden = true
}

override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)

// Configure the view for the selected state
}

func configureButtonTitle(text: String) {
addButton.setTitle(text, for: .normal)
}
}
Loading

0 comments on commit 334acb1

Please sign in to comment.