라이브
- 팔로우/팔로잉 버튼 변경
This commit is contained in:
@@ -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)
|
||||
|
@@ -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) :
|
||||
|
@@ -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 {
|
||||
|
@@ -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)
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user