-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Refactor] Signup 뷰 책임 분리
- Loading branch information
Showing
19 changed files
with
419 additions
and
551 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// | ||
// AgreeToAllButton.swift | ||
// Common | ||
// | ||
// Created by Chandrala on 7/11/24. | ||
// Copyright © 2024 com.recordy. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
import SnapKit | ||
import Then | ||
|
||
import UIKit | ||
import SnapKit | ||
import Then | ||
|
||
public class AgreeAllTermButton: RecordyTermButton { | ||
|
||
public override init(frame: CGRect) { | ||
super.init(frame: frame) | ||
setStyle() | ||
setAutolayout() | ||
} | ||
|
||
required init?(coder aDecoder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
|
||
private func setStyle() { | ||
backgroundColor = CommonAsset.recordyGrey09.color | ||
layer.cornerRadius = 8 | ||
|
||
agreeLabel.do { | ||
$0.text = "전체동의" | ||
$0.font = RecordyFont.subtitle.font | ||
$0.textColor = CommonAsset.recordyGrey01.color | ||
} | ||
} | ||
|
||
private func setAutolayout() { | ||
self.agreeImageView.snp.makeConstraints { | ||
$0.leading.equalTo(snp.leading).offset(20) | ||
$0.centerY.equalToSuperview() | ||
$0.width.height.equalTo(24) | ||
} | ||
|
||
self.agreeLabel.snp.makeConstraints { | ||
$0.leading.equalTo(agreeImageView.snp.trailing).offset(16) | ||
$0.centerY.equalToSuperview() | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.