Skip to content

Commit

Permalink
?? job 제거 & addSubView 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
2jae6 committed Apr 26, 2022
1 parent d52902e commit 7d72cfe
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,31 +60,26 @@ extension LiarGameSubjectViewController{

func setupView(){
animalButton.do{
self.view.addSubview($0)
$0.backgroundColor = .yellow
$0.setTitle("동물", for: .normal)
$0.setTitleColor(.black, for: .normal)
}
exerciseButton.do{
self.view.addSubview($0)
$0.backgroundColor = .yellow
$0.setTitle("운동", for: .normal)
$0.setTitleColor(.black, for: .normal)
}
foodButton.do{
self.view.addSubview($0)
$0.backgroundColor = .yellow
$0.setTitle("음식", for: .normal)
$0.setTitleColor(.black, for: .normal)
}
electronicEquipmentButton.do{
self.view.addSubview($0)
$0.backgroundColor = .yellow
$0.setTitle("전자기기", for: .normal)
$0.setTitleColor(.black, for: .normal)
}
jobButton.do{
self.view.addSubview($0)
$0.backgroundColor = .yellow
$0.setTitle("직업", for: .normal)
$0.setTitleColor(.black, for: .normal)
Expand Down Expand Up @@ -128,7 +123,7 @@ extension LiarGameSubjectViewController{
.distinctUntilChanged()
.withUnretained(self)
.subscribe(onNext:{ `self`, subject in
let liarGameVC = LiarGameViewController(subject: subject ?? .job)
let liarGameVC = LiarGameViewController(subject: subject)
liarGameVC.modalPresentationStyle = .fullScreen
self.present(liarGameVC, animated: true, completion: nil)

Expand Down

0 comments on commit 7d72cfe

Please sign in to comment.