Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/suyeon'
Browse files Browse the repository at this point in the history
Conflicts:
	KkuMulKum.xcodeproj/project.pbxproj
  • Loading branch information
hooni0918 committed Jul 11, 2024
2 parents f30ef70 + 94f6caf commit 41f9598
Show file tree
Hide file tree
Showing 11 changed files with 397 additions and 48 deletions.
8 changes: 0 additions & 8 deletions File.swift

This file was deleted.

18 changes: 7 additions & 11 deletions KkuMulKum.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
DDA2EE732C385EB9007C6059 /* MainTabBarController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDA2EE722C385EB9007C6059 /* MainTabBarController.swift */; };
DDA2EE752C385FB1007C6059 /* HomeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDA2EE742C385FB1007C6059 /* HomeViewController.swift */; };
DDA2EE772C385FC3007C6059 /* GroupListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDA2EE762C385FC3007C6059 /* GroupListViewController.swift */; };
DDA2EE792C385FCF007C6059 /* MyPageViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDA2EE782C385FCF007C6059 /* MyPageViewController.swift */; };
DDAF1C7C2C3D5B86008A37D3 /* RxCocoa in Frameworks */ = {isa = PBXBuildFile; productRef = DDAF1C7B2C3D5B86008A37D3 /* RxCocoa */; };
DDAF1C7E2C3D5B86008A37D3 /* RxRelay in Frameworks */ = {isa = PBXBuildFile; productRef = DDAF1C7D2C3D5B86008A37D3 /* RxRelay */; };
DDAF1C812C3D5BD5008A37D3 /* Kingfisher in Frameworks */ = {isa = PBXBuildFile; productRef = DDAF1C802C3D5BD5008A37D3 /* Kingfisher */; };
Expand Down Expand Up @@ -405,6 +404,7 @@
children = (
78B9286A2C29402C006D9942 /* KkuMulKum */,
78B928692C29402C006D9942 /* Products */,
78AED1232C3D8E27000AD80A /* Recovered References */,
);
sourceTree = "<group>";
};
Expand Down Expand Up @@ -504,14 +504,6 @@
path = GroupList;
sourceTree = "<group>";
};
DDA2EE7D2C386087007C6059 /* MyPage */ = {
isa = PBXGroup;
children = (
DDA2EE782C385FCF007C6059 /* MyPageViewController.swift */,
);
path = MyPage;
sourceTree = "<group>";
};
DDA2EE7E2C3860B2007C6059 /* Core */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -554,7 +546,7 @@
DDA2EE7E2C3860B2007C6059 /* Core */,
DDA2EE7B2C386078007C6059 /* Home */,
DDA2EE7C2C38607F007C6059 /* GroupList */,
DDA2EE7D2C386087007C6059 /* MyPage */,
78AED1242C3D8E56000AD80A /* MyPage */,
DD865B652C3920F600C351A2 /* Onboarding */,
DDAF1C872C3D6E3D008A37D3 /* Promise */,
);
Expand Down Expand Up @@ -895,6 +887,7 @@
files = (
DDAF1C8E2C3D6E3D008A37D3 /* ReadyStatusViewController.swift in Sources */,
DED5DBF22C34534A006ECE7E /* BaseCollectionReusableView.swift in Sources */,
78AED12D2C3D8E56000AD80A /* MyPageNavigationView.swift in Sources */,
DED5DBEC2C345210006ECE7E /* BaseViewController.swift in Sources */,
DD30721A2C3C011600416D9F /* AddPromiseRequestModel.swift in Sources */,
DD30721E2C3C0CC800416D9F /* PromiseInfoResponseModel.swift in Sources */,
Expand Down Expand Up @@ -923,11 +916,13 @@
DE8248002C36E857000601BC /* ObservablePattern.swift in Sources */,
DDAF1C902C3D6E3D008A37D3 /* PromiseViewModel.swift in Sources */,
DE254AAA2C31190E00A4015E /* UIStackView+.swift in Sources */,
78AED12E2C3D8E56000AD80A /* MyPageEtcSettingView.swift in Sources */,
DED5DBF02C345317006ECE7E /* BaseCollectionViewCell.swift in Sources */,
DE32D1D42C3BFB56006848DF /* UpdateProfileNameModel.swift in Sources */,
DDAF1C932C3D6E3D008A37D3 /* PromiseViewController.swift in Sources */,
DE9E18922C3BCC9D00DB76B4 /* SocialLoginRequestModel.swift in Sources */,
DE254AA82C3118EA00A4015E /* UIView+.swift in Sources */,
78AED12F2C3D8E56000AD80A /* MyPageAlarmSettingView.swift in Sources */,
DE254AAE2C31193600A4015E /* UIFont+.swift in Sources */,
DE9E189A2C3BCCBE00DB76B4 /* UtilsTemp.swift in Sources */,
782B407B2C3E395A008B0CA7 /* WelcomeView.swift in Sources */,
Expand All @@ -943,7 +938,6 @@
78AED1372C3D98D1000AD80A /* NicknameView.swift in Sources */,
DED5DBF42C34539A006ECE7E /* BaseTableViewCell.swift in Sources */,
78B9286E2C29402C006D9942 /* SceneDelegate.swift in Sources */,
DDA2EE792C385FCF007C6059 /* MyPageViewController.swift in Sources */,
A3FB185B2C3BF7DF001483E5 /* MeetingMembersResponseModel.swift in Sources */,
DD3072222C3C0DA300416D9F /* PromiseParticipantListResponseModel.swift in Sources */,
789873322C3D1A7B00435E96 /* LoginViewController.swift in Sources */,
Expand All @@ -957,6 +951,8 @@
DD931B6E2C3DA27F00526452 /* ParticipantCollectionViewCell.swift in Sources */,
DD931B762C3DC16100526452 /* PromiseInfoView.swift in Sources */,
DD3072242C3C0EB200416D9F /* MyPromiseReadyInfoRequestModel.swift in Sources */,
78AED12C2C3D8E56000AD80A /* MyPageContentView.swift in Sources */,
78AED1302C3D8E56000AD80A /* MyPageViewController.swift in Sources */,
789873332C3D1A7B00435E96 /* LoginViewModel.swift in Sources */,
782B40752C3DBFBA008B0CA7 /* ProfileView.swift in Sources */,
DED5DBEE2C34529A006ECE7E /* BaseView.swift in Sources */,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "edit.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"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.
29 changes: 0 additions & 29 deletions KkuMulKum/Source/MyPage/MyPageViewController.swift

This file was deleted.

80 changes: 80 additions & 0 deletions KkuMulKum/Source/MyPage/View/MyPageAlarmSettingView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
//
// MyPageAlarmSettingView.swift
// KkuMulKum
//
// Created by 이지훈 on 7/9/24.
//

import UIKit

import SnapKit
import Then

class AlarmSettingView: BaseView {
private let containerView = UIView().then {
$0.backgroundColor = .white
$0.layer.borderWidth = 1
$0.layer.borderColor = UIColor.gray2.cgColor
$0.layer.cornerRadius = 8
}

private let stackView = UIStackView(axis: .vertical).then {
$0.spacing = 8
$0.alignment = .fill
$0.distribution = .fill
}

private let titleStackView = UIStackView(axis: .horizontal).then {
$0.alignment = .center
$0.distribution = .equalSpacing
}

private let titleLabel = UILabel().then {
$0.setText("알림 설정", style: .body03, color: .black)

}

private let toggleSwitch = UISwitch().then {
$0.onTintColor = .green
}

private let subtitleLabel = UILabel().then {
$0.setText("준비, 이동을 시작해야할 시간에\n푸시 알림을 받을 수 있습니다.", style: .caption02, color: .gray)
}

override func setupView() {
super.setupView()
backgroundColor = .systemMint.withAlphaComponent(0.1)

addSubview(containerView)
containerView.addSubview(stackView)

titleStackView.addArrangedSubviews(titleLabel, toggleSwitch)
stackView.addArrangedSubviews(titleStackView, subtitleLabel)
}

override func setupAutoLayout() {
super.setupAutoLayout()

containerView.snp.makeConstraints {
$0.edges.equalToSuperview()
}

stackView.snp.makeConstraints {
$0.edges.equalToSuperview().inset(15)
}

titleStackView.snp.makeConstraints {
$0.height.greaterThanOrEqualTo(44)
}

toggleSwitch.snp.makeConstraints {
$0.width.equalTo(51)
$0.height.equalTo(31)
}

subtitleLabel.snp.makeConstraints {
$0.height.greaterThanOrEqualTo(40) // 최소 높이 설정
}
}
}
84 changes: 84 additions & 0 deletions KkuMulKum/Source/MyPage/View/MyPageContentView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
//
// MyPageContentView.swift
// KkuMulKum
//
// Created by 이지훈 on 7/9/24.
//

import UIKit

import SnapKit
import Then

class MyPageContentView: BaseView {
let profileStackView = UIStackView(axis: .vertical).then {
$0.spacing = 12
$0.alignment = .center
}

let profileImageView = UIImageView().then {
$0.image = UIImage(named: "img_profile")
$0.contentMode = .scaleAspectFill
$0.clipsToBounds = true
}

let nameLabel = UILabel().then {
$0.font = UIFont.pretendard(.body01)
$0.textColor = .gray8
$0.text = "꾸물리안 님"
}

let levelView = UIView().then {
$0.backgroundColor = .maincolor
$0.layer.cornerRadius = 20
}

let levelLabel = UILabel().then {
$0.textColor = .white
$0.font = UIFont.pretendard(.body02)
$0.text = "Lv. 1 지각대장 꾸물이"
}

let separatorView = UIView().then {
$0.backgroundColor = .green2
}

override func setupView() {
backgroundColor = .clear
addSubview(profileStackView,levelView,separatorView)
profileStackView.addArrangedSubviews(profileImageView, nameLabel)
levelView.addSubview(levelLabel)
}

override func setupAutoLayout() {
profileStackView.snp.makeConstraints {
$0.top.equalToSuperview().offset(20)
$0.centerX.equalToSuperview()
}

profileImageView.snp.makeConstraints {
$0.size.equalTo(100)
}

nameLabel.snp.makeConstraints {
$0.top.equalTo(profileImageView.snp.bottom).offset(12)
}

levelView.snp.makeConstraints {
$0.top.equalTo(nameLabel.snp.bottom).offset(12)
$0.height.equalTo(36)
$0.leading.trailing.equalToSuperview().inset(80)
}

levelLabel.snp.makeConstraints {
$0.center.equalToSuperview()
}

separatorView.snp.makeConstraints {
$0.height.equalTo(6)
$0.leading.trailing.equalToSuperview()
$0.top.equalTo(levelView.snp.bottom).offset(35)
$0.bottom.equalToSuperview().offset(-20)
}
}
}
Loading

0 comments on commit 41f9598

Please sign in to comment.