검색 UI 추가

This commit is contained in:
Yu Sung
2025-03-27 08:54:08 +09:00
parent 82dc43b40f
commit c71e78fc88
16 changed files with 1023 additions and 8 deletions

View File

@@ -10,6 +10,8 @@ import SwiftUI
struct UserProfileView: View {
let userId: Int
@Environment(\.presentationMode) var presentationMode: Binding<PresentationMode>
@StateObject var viewModel = UserProfileViewModel()
@State private var memberId: Int = 0
@@ -24,7 +26,11 @@ struct UserProfileView: View {
VStack(spacing: 0) {
HStack(spacing: 0) {
Button {
AppState.shared.back()
if presentationMode.wrappedValue.isPresented {
presentationMode.wrappedValue.dismiss()
} else {
AppState.shared.back()
}
} label: {
Image("ic_back")
.resizable()
@@ -250,6 +256,8 @@ struct UserProfileView: View {
}
}
}
.navigationTitle("")
.navigationBarBackButtonHidden()
.popup(isPresented: $viewModel.isShowPopup, type: .toast, position: .bottom, autohideIn: 2) {
HStack {
Spacer()