Skip to content

Commit

Permalink
[Chore] 주석 제거 및 코드 수정 #8
Browse files Browse the repository at this point in the history
  • Loading branch information
meltsplit committed Apr 28, 2023
1 parent d532961 commit 3d0336b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 172 deletions.
153 changes: 0 additions & 153 deletions SOPTving/SOPTving/Presentation/MainScene/VC/MainVC.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -94,31 +94,26 @@ final class MyPageProfileView: UIView {
font: .tvingBold(ofSize: 16))
.build()

private lazy var memberShipStackView: UIStackView = {
let stackView = UIStackView(arrangedSubviews: [memberShipImageView,
memberShipLabel,
myMemberShipButton])
private let memberShipStackView: UIStackView = {
let stackView = UIStackView()
stackView.axis = .horizontal
stackView.distribution = .fill
stackView.alignment = .center
stackView.alignment = .fill
stackView.spacing = 8
memberShipLabel.setContentHuggingPriority(.defaultLow, for: .horizontal)
return stackView
}()

private lazy var cashStackView: UIStackView = {
let stackView = UIStackView(arrangedSubviews: [cashImageView,
cashLabel,
myCashButton])
private let cashStackView: UIStackView = {
let stackView = UIStackView()
stackView.axis = .horizontal
stackView.distribution = .fill
stackView.alignment = .center
stackView.alignment = .fill
stackView.spacing = 8
return stackView
}()

private lazy var darkStackView: UIStackView = {
let stackView = UIStackView(arrangedSubviews: [memberShipStackView, cashStackView])
private let darkStackView: UIStackView = {
let stackView = UIStackView()
stackView.axis = .vertical
stackView.distribution = .equalCentering
stackView.alignment = .fill
Expand Down Expand Up @@ -169,6 +164,16 @@ extension MyPageProfileView {
profileChangeButton,
darkView)

memberShipStackView.addArrangedSubViews(memberShipImageView,
memberShipLabel,
myMemberShipButton)

cashStackView.addArrangedSubViews(cashImageView,
cashLabel,
myCashButton)

darkStackView.addArrangedSubViews(memberShipStackView, cashStackView)

darkView.addSubviews(darkStackView)
}

Expand Down Expand Up @@ -204,17 +209,17 @@ extension MyPageProfileView {
memberShipImageView.snp.makeConstraints {
$0.size.equalTo(23)
}

cashImageView.snp.makeConstraints {
$0.size.equalTo(23)
}

memberShipLabel.snp.makeConstraints {
$0.width.lessThanOrEqualToSuperview().priority(200)
$0.width.greaterThanOrEqualTo(memberShipImageView)
}

cashLabel.snp.makeConstraints {
$0.width.lessThanOrEqualToSuperview().priority(200)
$0.width.greaterThanOrEqualTo(cashImageView)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,8 @@ extension MyPageVC {

@objc
private func backButtonDidTap() {
dismiss(animated: true)
navigationController?.popViewController(animated: true)
}


}

//MARK: - UI & Layout
Expand Down

0 comments on commit 3d0336b

Please sign in to comment.