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

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

@@ -152,13 +152,12 @@ struct SeriesDetailView: View {
Spacer()
if seriesDetail.creator.creatorId != UserDefaults.int(forKey: .userId) {
Image(
viewModel.isFollow ?
viewModel.isNotify ?
"btn_following_big" :
"btn_following_no_alarm_big" :
"btn_follow_big"
let asset = FollowButtonImageAsset(
type: viewModel.isFollow
? (viewModel.isNotify ? .following : .followingNoAlarm)
: .follow
)
asset.imageView()
.onTapGesture {
if viewModel.isFollow {
creatorId = seriesDetail.creator.creatorId