Skip to content

Commit

Permalink
[Chore] ProfileEditVC ์ˆ˜์ • (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReeseSR committed May 2, 2022
1 parent 4d7568d commit e779acc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import UIKit

import Then

protocol ProfileEditViewControllerDelegate: class {
protocol ProfileEditViewControllerDelegate: AnyObject {
func setUpdate(data: MyPageResponse)
}

Expand All @@ -19,7 +19,6 @@ struct ProfileEditViewControllerViewModel {
}



final class ProfileEditViewController: UIViewController {

// MARK: - Properties
Expand Down Expand Up @@ -47,15 +46,13 @@ final class ProfileEditViewController: UIViewController {

@IBOutlet weak var countingLabel: UILabel!


private let imageShadowView = UIView().then {
$0.layer.shadowOffset = CGSize(width: 0, height: 0)
$0.layer.shadowOpacity = 0.2
$0.layer.shadowRadius = 5.0
$0.layer.shadowColor = UIColor.gray.cgColor
}


weak var delegate: ProfileEditViewControllerDelegate?

private var viewModel: ProfileEditViewControllerViewModel = ProfileEditViewControllerViewModel(profileImage: UIImage(), userName: "")
Expand Down Expand Up @@ -90,7 +87,6 @@ final class ProfileEditViewController: UIViewController {
userProfileImageView.clipsToBounds = true
}


private func setDelegation() {
userNameTextField.delegate = self
let tapGesture = UITapGestureRecognizer(target: self, action: #selector(touchToPickImage))
Expand Down Expand Up @@ -144,7 +140,6 @@ final class ProfileEditViewController: UIViewController {

// MARK: - @IBAction


@IBAction func didTapCancel(_ sender: Any) {
dismiss(animated: true, completion: nil)
}
Expand Down Expand Up @@ -221,9 +216,6 @@ final class ProfileEditViewController: UIViewController {
}





private func actionSheetAlert() {
let imagePickerController = UIImagePickerController()
imagePickerController.delegate = self
Expand Down Expand Up @@ -268,12 +260,11 @@ final class ProfileEditViewController: UIViewController {
self.viewModel = viewModel
}


}

// MARK: - UIImagePickerControllerDelegate, UINavigationControllerDelegatenil
extension ProfileEditViewController: UIImagePickerControllerDelegate, UINavigationControllerDelegate {
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) {
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey: Any]) {

var newImage: UIImage? = nil

Expand Down
3 changes: 1 addition & 2 deletions Hyangyu/Hyangyu/Sources/Views/HeaderView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import UIKit

import Kingfisher
import Then
import SnapKit
Expand Down Expand Up @@ -58,15 +59,13 @@ class HeaderView: UIView {

weak var delegate: HeaderViewDelegate?


func configureUI() {
addSubview(profileImageView)
addSubview(userNameLabel)
addSubview(buttonStackView)
buttonStackView.addArrangedSubview(profileEditButton)
buttonStackView.addArrangedSubview(myReviewButton)


profileImageView.snp.makeConstraints {
$0.top.equalTo(safeAreaInsets.top).offset(110)
$0.leading.equalTo(safeAreaInsets.left).offset(20)
Expand Down

0 comments on commit e779acc

Please sign in to comment.