-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
Spoony-iOS/Spoony-iOS/Source/Feature/Search/SearchView.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
} |