fix
This commit is contained in:
parent
d95c35992f
commit
7753040a6f
@ -9,11 +9,10 @@ import SwiftUI
|
|||||||
import Observation
|
import Observation
|
||||||
|
|
||||||
struct SearchView: View {
|
struct SearchView: View {
|
||||||
|
@AppStorage("userId") private var userId: String = Utils.defaultUserId()
|
||||||
@Environment(\.dismiss) var dismiss
|
@Environment(\.dismiss) var dismiss
|
||||||
@State var model = SearchModel()
|
@State var model = SearchModel()
|
||||||
@State var searchText: String = ""
|
@State var searchText: String = ""
|
||||||
@FocusState private var isSearchFocused: Bool
|
|
||||||
@AppStorage("userId") private var userId: String = Utils.defaultUserId()
|
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
VStack {
|
VStack {
|
||||||
@ -54,12 +53,13 @@ struct SearchView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
.navigationTitle("")
|
.navigationTitle("")
|
||||||
.navigationBarBackButtonHidden(true)
|
.navigationBarBackButtonHidden(true)
|
||||||
.ignoresSafeArea(edges: [.bottom])
|
|
||||||
.padding(8)
|
.padding(8)
|
||||||
|
.ignoresSafeArea(edges: .bottom)
|
||||||
.task {
|
.task {
|
||||||
await model.search(userId: userId, name: "第二季")
|
await model.search(userId: userId, name: "第二季")
|
||||||
}
|
}
|
||||||
@ -83,7 +83,7 @@ extension SearchView {
|
|||||||
image
|
image
|
||||||
.resizable()
|
.resizable()
|
||||||
.aspectRatio(contentMode: .fill)
|
.aspectRatio(contentMode: .fill)
|
||||||
.frame(width: 370, height: 180)
|
.frame(height: 180)
|
||||||
.clipped()
|
.clipped()
|
||||||
default:
|
default:
|
||||||
Image("ph_img_big")
|
Image("ph_img_big")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user