크리에이터 채널 - 팔로우/팔로잉 버튼 로컬 라이징 적용

This commit is contained in:
Yu Sung
2026-01-20 00:17:42 +09:00
parent f1353fc2e6
commit d3037d1ba3
18 changed files with 217 additions and 28 deletions

View File

@@ -47,13 +47,12 @@ struct UserProfileView: View {
.foregroundColor(.white)
if creatorProfile.creator.creatorId != UserDefaults.int(forKey: .userId) {
Image(
creatorProfile.creator.isFollow ?
creatorProfile.creator.isNotify ? "btn_following_big": "btn_following_no_alarm_big"
: "btn_follow_big"
let asset = FollowButtonImageAsset(
type: creatorProfile.creator.isFollow
? (creatorProfile.creator.isNotify ? .following : .followingNoAlarm)
: .follow
)
.resizable()
.frame(width: 83.3, height: 26.7)
asset.imageView(defaultSize: CGSize(width: 83.3, height: 26.7))
.onTapGesture {
if creatorProfile.creator.isFollow {
isShowFollowNotifyDialog = true