feat(creator): 플로팅 액션 진입을 연결한다

This commit is contained in:
Yu Sung
2026-07-03 22:02:11 +09:00
parent 5059cd4a40
commit 0fa036f04d
9 changed files with 69 additions and 12 deletions

View File

@@ -55,7 +55,7 @@ struct ContentListView: View {
.cornerRadius(5.3)
.padding(.top, 13.3)
.padding(.horizontal, 13.3)
.onTapGesture { AppState.shared.setAppStep(step: .createContent) }
.onTapGesture { AppState.shared.setAppStep(step: .createContent()) }
}
HStack(spacing: 13.3) {

View File

@@ -10,6 +10,7 @@ import Kingfisher
struct ContentCreateView: View {
@Environment(\.locale) private var locale
let onSuccess: (() -> Void)?
@StateObject var keyboardHandler = KeyboardHandler()
@StateObject private var viewModel = ContentCreateViewModel()
@@ -23,6 +24,10 @@ struct ContentCreateView: View {
@State private var isShowSelectThemeView = false
@State private var isShowSelectDateView = false
@State private var isShowSelectTimeView = false
init(onSuccess: (() -> Void)? = nil) {
self.onSuccess = onSuccess
}
var body: some View {
let normalizedCountryCode = UserDefaults
@@ -655,7 +660,10 @@ struct ContentCreateView: View {
title: I18n.CreateContent.uploadTitle,
desc: I18n.CreateContent.uploadDescription,
confirmButtonTitle: I18n.Common.confirm,
confirmButtonAction: { AppState.shared.back() },
confirmButtonAction: {
onSuccess?()
AppState.shared.back()
},
cancelButtonTitle: "",
cancelButtonAction: {}
)