캔 아이콘 변경

This commit is contained in:
Yu Sung
2023-08-20 23:14:00 +09:00
parent 6bc5356ac1
commit 792e029f0d
8 changed files with 21 additions and 11 deletions

View File

@@ -11,6 +11,7 @@ import Kingfisher
struct LiveRoomTopCreatorView: View {
let creatorId: Int
var nickname: String
var profileImageUrl: String
var isFollowing: Bool
@@ -34,8 +35,10 @@ struct LiveRoomTopCreatorView: View {
Spacer()
Image(isFollowing ? "btn_following" : "btn_follow")
.onTapGesture { onClickFollow(isFollowing) }
if creatorId != UserDefaults.int(forKey: .userId) {
Image(isFollowing ? "btn_following" : "btn_follow")
.onTapGesture { onClickFollow(isFollowing) }
}
}
}
}