Skip to content

Commit

Permalink
#43 Fix : change button img
Browse files Browse the repository at this point in the history
  • Loading branch information
doyeonk429 committed Aug 21, 2024
1 parent 9143b63 commit 1f45de7
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,9 @@ class WineClassMainViewController: UIViewController, UICollectionViewDataSource,

setupTitleClassLabel()

let button = CustomButton(type: .system)
button.translatesAutoresizingMaskIntoConstraints = false
let button = UIButton(type: .system)
button.setImage(UIImage(systemName: "square.and.arrow.down.on.square"), for: .normal)
button.tintColor = .black

containerView.addSubview(titleclassLabel)
containerView.addSubview(button)
Expand All @@ -180,8 +181,7 @@ class WineClassMainViewController: UIViewController, UICollectionViewDataSource,
button.snp.makeConstraints { b in
b.top.equalTo(titleclassLabel.snp.top)
b.trailing.equalTo(containerView.snp.trailing).inset(20)
b.height.greaterThanOrEqualTo(16)
b.width.greaterThanOrEqualTo(30)
b.height.equalTo(titleclassLabel.snp.height).multipliedBy(0.9)
}

setupMainClassView()
Expand Down Expand Up @@ -322,4 +322,3 @@ class WineClassMainViewController: UIViewController, UICollectionViewDataSource,
return CGSize(width: height*0.6, height: height)
}
}

0 comments on commit 1f45de7

Please sign in to comment.