Skip to content

Commit

Permalink
style: #54 네비게이션 UI구현
Browse files Browse the repository at this point in the history
hooni0918 committed Jan 15, 2025
1 parent 17c809b commit 84dae45
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Spoony-iOS/Spoony-iOS/Source/Feature/Search/SearchView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//
// SearchView.swift
// Spoony-iOS
//
// Created by 이지훈 on 1/16/25.
//

import SwiftUI

struct SearchView: View {
@EnvironmentObject private var navigationManager: NavigationManager
@State private var searchText = ""

var body: some View {
VStack(spacing: 0) {
CustomNavigationBar(
style: .search(showBackButton: true),
searchText: $searchText,
onBackTapped: {
// 뒤로가기
navigationManager.pop(1)
},
onSearchSubmit: nil
)

Spacer()
}
}
}

#Preview {
SearchView()
}

0 comments on commit 84dae45

Please sign in to comment.