Skip to content

Commit

Permalink
fix/#353 '+' 이미지 중앙으로 오도록 수정
Browse files Browse the repository at this point in the history
- ContentInset은 iOS 15.0에서 deprecated 되어 UIButton.Configuration을 이용하여 설정
  • Loading branch information
JinUng41 committed Sep 1, 2024
1 parent 6389618 commit 2a4ab19
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions KkuMulKum/Source/MeetingInfo/Cell/MeetingMemberCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ final class MeetingMemberCell: BaseCollectionViewCell {
super.prepareForReuse()

profileImageButton.do {
var config = UIButton.Configuration.plain()
config.contentInsets = NSDirectionalEdgeInsets(top: 0, leading: 0, bottom: 0, trailing: 0)

$0.imageView?.image = nil
$0.backgroundColor = .clear
$0.isEnabled = false
Expand Down Expand Up @@ -89,6 +92,10 @@ private extension MeetingMemberCell {
self.delegate = delegate

profileImageButton.do {
var config = UIButton.Configuration.plain()
config.contentInsets = NSDirectionalEdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0)

$0.configuration = config
$0.backgroundColor = .gray1
$0.setImage(.iconPlus.withTintColor(.gray4), for: .normal)
$0.isEnabled = true
Expand Down

0 comments on commit 2a4ab19

Please sign in to comment.