Skip to content

Commit

Permalink
✨[FEAT] #146 - 플로팅버튼 addTarget 함수 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
jumining committed Jan 19, 2023
1 parent 72cde3b commit 6795c9d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ final class LikedStudiosViewController: UIViewController {
return collectionView
}()

private let upButton = UIButton().then {
private let myStudioLabel = UILabel().then {
$0.text = "My Studio"
$0.font = UIFont(name: "FuturaStd-Book", size: 16)
Expand All @@ -49,7 +48,9 @@ final class LikedStudiosViewController: UIViewController {
$0.backgroundColor = .darkGrey1
}

private lazy var upButton = UIButton().then {
$0.setImage(Asset.btnUp.image, for: .normal)
$0.addTarget(self, action: #selector(upButtonDidTap), for: .touchUpInside)
}

// MARK: - Life Cycle
Expand All @@ -62,10 +63,12 @@ final class LikedStudiosViewController: UIViewController {
}

// MARK: - @objc
@objc func upButtonDidTap(_ sender: UIButton) {
// TODO: - 버튼 액션 처리
}

// MARK: - Custom Method
private func setDummyData() {
for _ in 0..<20 {
for _ in 0..<22 {
likedStudiosList.append(contentsOf: [LikedStudio(id: 0, name: "필린 사진관", address: "서울특별시 영등포구 여의도동21-3 가가가가가가가가가가가가가가가가")])
}
Expand Down

0 comments on commit 6795c9d

Please sign in to comment.