-
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
LoginView ๋
- Loading branch information
Showing
10 changed files
with
139 additions
and
53 deletions.
There are no files selected for viewing
7 changes: 3 additions & 4 deletions
7
...e/Interface/AppShop/MonsterCategory.swift โ Core/SuperUI/Model/MonsterCategory.swift
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
2 changes: 1 addition & 1 deletion
2
...m/DemoApp/Sources/TrendingKeywordCollection/TrendingKeywordCollectionViewController.swift
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import UIKit | ||
import DesignSystem | ||
import ShopUserInterface | ||
import SuperUI | ||
|
||
enum Item { | ||
case subCategory | ||
|
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
80 changes: 80 additions & 0 deletions
80
DesignSystem/Sources/MonsterButton/Monster+DoubleTextButton.swift
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,80 @@ | ||
// | ||
// Monster+DoubleTextButton.swift | ||
// DesignSystem | ||
// | ||
// Created by ๋ฐ์คํ on 11/7/23. | ||
// | ||
|
||
import UIKit | ||
import Then | ||
import SnapKit | ||
import RxSwift | ||
import RxCocoa | ||
|
||
public class MonsterDoubleTextButton: UIView { | ||
|
||
private let firstButton = UIButton().then { | ||
$0.setTitleColor(.white, for: .normal) | ||
$0.titleLabel?.font = UIFont.systemFont(ofSize: 14.0, weight: .black) | ||
$0.layer.cornerRadius = 5 | ||
} | ||
|
||
private let separatorLabel = UILabel().then { | ||
$0.text = "|" | ||
$0.textColor = .black | ||
$0.font = UIFont.systemFont(ofSize: 16.0, weight: .black) | ||
} | ||
|
||
private let secondButton = UIButton().then { | ||
$0.setTitleColor(.white, for: .normal) | ||
$0.titleLabel?.font = UIFont.systemFont(ofSize: 14.0, weight: .black) | ||
$0.layer.cornerRadius = 5 | ||
} | ||
|
||
public let disposeBag = DisposeBag() | ||
|
||
public var greetingObservable: Observable<Void> { | ||
return firstButton.rx.tap.asObservable() | ||
} | ||
|
||
public var farewellObservable: Observable<Void> { | ||
return secondButton.rx.tap.asObservable() | ||
} | ||
|
||
public init(title1: String, title2: String, thintColor: UIColor, backgroundColor: UIColor) { | ||
super.init(frame: .zero) | ||
firstButton.setTitle(title1, for: .normal) | ||
secondButton.setTitle(title2, for: .normal) | ||
firstButton.backgroundColor = backgroundColor | ||
secondButton.backgroundColor = backgroundColor | ||
firstButton.setTitleColor(thintColor, for: .normal) | ||
secondButton.setTitleColor(thintColor, for: .normal) | ||
setupUI() | ||
setupConstraints() | ||
} | ||
|
||
required init?(coder aDecoder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
|
||
private func setupUI() { | ||
[firstButton,separatorLabel,secondButton].forEach { self.addSubview($0) } | ||
} | ||
|
||
private func setupConstraints() { | ||
firstButton.snp.makeConstraints { | ||
$0.leading.top.bottom.equalToSuperview() | ||
$0.trailing.equalTo(separatorLabel.snp.leading).offset(-8) | ||
} | ||
|
||
separatorLabel.snp.makeConstraints { | ||
$0.centerY.equalToSuperview() | ||
$0.centerX.equalToSuperview() | ||
} | ||
|
||
secondButton.snp.makeConstraints { | ||
$0.trailing.top.bottom.equalToSuperview() | ||
$0.leading.equalTo(separatorLabel.snp.trailing).offset(8) | ||
} | ||
} | ||
} |
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
20 changes: 0 additions & 20 deletions
20
Features/User/Auth/Login/LoginUserInterface/Implement/AppLoginImpl/Views/LoginView.swift
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