-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
76 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
// CheckInviteCodeView.swift | ||
// KkuMulKum | ||
// | ||
// Created by YOUJIM on 7/11/24. | ||
// | ||
|
||
import UIKit | ||
|
||
class CheckInviteCodeView: BaseView { | ||
private let checkInviteLabel: UILabel = UILabel().then { | ||
$0.setText("친구에게 받은\n모임 초대 코드가 있으신가요?", style: .head01, color: .gray8) | ||
} | ||
|
||
let enterInviteCodeView: JoinButtonView = JoinButtonView().then { | ||
$0.setJoinButtonViewStatus(isReceived: true) | ||
} | ||
|
||
let createGroupView: JoinButtonView = JoinButtonView().then { | ||
$0.setJoinButtonViewStatus(isReceived: false) | ||
} | ||
|
||
override func setupView() { | ||
self.addSubviews(checkInviteLabel, enterInviteCodeView, createGroupView) | ||
} | ||
|
||
override func setupAutoLayout() { | ||
checkInviteLabel.snp.makeConstraints { | ||
$0.top.equalToSuperview().offset(32) | ||
$0.leading.equalToSuperview().offset(20) | ||
} | ||
|
||
enterInviteCodeView.snp.makeConstraints { | ||
$0.top.equalTo(checkInviteLabel.snp.bottom).offset(24) | ||
$0.leading.trailing.equalToSuperview().inset(20) | ||
} | ||
|
||
createGroupView.snp.makeConstraints { | ||
$0.top.equalTo(enterInviteCodeView.snp.bottom).offset(12) | ||
$0.leading.trailing.equalToSuperview().inset(20) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters