feat(creator): 팬Talk 탭을 추가한다

This commit is contained in:
Yu Sung
2026-07-05 00:44:03 +09:00
parent 7c98af0c7d
commit f5ead536ea
16 changed files with 1250 additions and 28 deletions

View File

@@ -6,7 +6,6 @@ struct CreatorChannelFloatingActionMenu: View {
let onTapAudioContent: () -> Void
let onTapCreateLive: () -> Void
private let buttonSize: CGFloat = 66
private let animation = Animation.interpolatingSpring(mass: 1, stiffness: 256, damping: 24, initialVelocity: 0)
var body: some View {
@@ -24,28 +23,28 @@ struct CreatorChannelFloatingActionMenu: View {
VStack(spacing: SodaSpacing.s14) {
if isPresented {
floatingButton(
CreatorChannelFloatingIconButton(
imageName: "ic_new_upload_community_post",
backgroundColor: Color.soda400,
accessibilityLabel: I18n.CreatorChannelHome.uploadCommunityPost,
action: onTapCommunityPost
)
floatingButton(
CreatorChannelFloatingIconButton(
imageName: "ic_new_upload_audio",
backgroundColor: Color.soda400,
accessibilityLabel: I18n.CreatorChannelHome.uploadAudioContent,
action: onTapAudioContent
)
floatingButton(
CreatorChannelFloatingIconButton(
imageName: "ic_new_create_live",
backgroundColor: Color.soda800,
accessibilityLabel: I18n.CreatorChannelHome.createLive,
action: onTapCreateLive
)
floatingButton(
CreatorChannelFloatingIconButton(
imageName: "ic_new_x_black",
backgroundColor: Color.white,
accessibilityLabel: I18n.CreatorChannelHome.closeFloatingMenu
@@ -55,7 +54,7 @@ struct CreatorChannelFloatingActionMenu: View {
}
}
} else {
floatingButton(
CreatorChannelFloatingIconButton(
imageName: "ic_plus_no_bg",
backgroundColor: Color.soda400,
accessibilityLabel: "FAB"
@@ -72,23 +71,6 @@ struct CreatorChannelFloatingActionMenu: View {
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .bottomTrailing)
}
private func floatingButton(
imageName: String,
backgroundColor: Color,
accessibilityLabel: String,
action: @escaping () -> Void
) -> some View {
Button(action: action) {
Image(imageName)
.resizable()
.frame(width: 38, height: 38)
.frame(width: buttonSize, height: buttonSize)
.background(backgroundColor)
.clipShape(Circle())
}
.accessibilityLabel(accessibilityLabel)
.buttonStyle(.plain)
}
}
struct CreatorChannelFloatingActionMenu_Previews: PreviewProvider {