라이브

- 팔로우/팔로잉 버튼 변경
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"
},
{
"filename" : "btn_notification.png",
"filename" : "btn_follow_big.png",
"idiom" : "universal",
"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"
},
{
"filename" : "btn_notification_selected.png",
"filename" : "btn_following_big.png",
"idiom" : "universal",
"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()
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 {
if creator.isFollowing {
onClickUnFollow(creator.creatorId)

View File

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

View File

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

View File

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

View File

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