라이브

- 팔로우/팔로잉 버튼 변경
This commit is contained in:
Yu Sung 2024-03-28 02:11:01 +09:00
parent 578b9b9089
commit 80e360aa17
13 changed files with 16 additions and 17 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@ -9,7 +9,7 @@
"scale" : "2x" "scale" : "2x"
}, },
{ {
"filename" : "btn_notification.png", "filename" : "btn_follow_big.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "3x" "scale" : "3x"
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -9,7 +9,7 @@
"scale" : "2x" "scale" : "2x"
}, },
{ {
"filename" : "btn_notification_selected.png", "filename" : "btn_following_big.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "3x" "scale" : "3x"
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

View File

@ -29,7 +29,7 @@ struct ContentDetailCreatorProfileView: View {
Spacer() Spacer()
if creator.creatorId != UserDefaults.int(forKey: .userId) { if creator.creatorId != UserDefaults.int(forKey: .userId) {
Image(creator.isFollowing ? "btn_notification_selected" : "btn_notification") Image(creator.isFollowing ? "btn_following_big" : "btn_follow_big")
.onTapGesture { .onTapGesture {
if creator.isFollowing { if creator.isFollowing {
onClickUnFollow(creator.creatorId) onClickUnFollow(creator.creatorId)

View File

@ -30,7 +30,7 @@ struct FollowerListItemView: View {
Spacer() Spacer()
if let isFollow = item.isFollow { if let isFollow = item.isFollow {
Image(isFollow ? "btn_notification_selected" : "btn_notification") Image(isFollow ? "btn_following_big" : "btn_follow_big")
.onTapGesture { .onTapGesture {
isFollow ? isFollow ?
creatorUnFollow(item.userId) : creatorUnFollow(item.userId) :

View File

@ -57,7 +57,7 @@ struct UserProfileCreatorView: View {
} }
} else { } else {
VStack(alignment: .leading, spacing: 9.3) { VStack(alignment: .leading, spacing: 9.3) {
Image(creator.isNotification ? "btn_notification_selected" : "btn_notification") Image(creator.isNotification ? "btn_following_big" : "btn_follow_big")
.resizable() .resizable()
.frame(width: 83.3, height: 26.7) .frame(width: 83.3, height: 26.7)
.onTapGesture { .onTapGesture {

View File

@ -31,7 +31,7 @@ struct FollowCreatorItemView: View {
Spacer() Spacer()
Image(isFollow ? "btn_notification_selected" : "btn_notification") Image(isFollow ? "btn_following_big" : "btn_follow_big")
.onTapGesture { .onTapGesture {
if isFollow { if isFollow {
onClickUnFollow(creator.creatorId) onClickUnFollow(creator.creatorId)

View File

@ -63,18 +63,17 @@ struct LiveRoomInfoCreatorView: View {
.lineLimit(1) .lineLimit(1)
} }
HStack(spacing: 5.3) {
Text(creatorNickname) Text(creatorNickname)
.font(.custom(Font.medium.rawValue, size: 12)) .font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(.gray77) .foregroundColor(.gray77)
}
if isShowFollowingButton { if isShowFollowingButton {
Image(isFollowing ? "btn_select_checked" : "btn_plus_round") Image(isFollowing ? "btn_following" : "btn_follow")
.resizable()
.frame(width: 20, height: 20)
.onTapGesture { onClickFollow() } .onTapGesture { onClickFollow() }
} }
}
}
} }
.padding(.vertical, 8) .padding(.vertical, 8)
.padding(.horizontal, 5.3) .padding(.horizontal, 5.3)