Любые подсказки будут оценены.

struct ContentView: View {
@State private var searchWord = ""
var body: some View {
ZStack {
// Set the wallpaper
Image("image1")
.opacity(0.9)
ScrollView {
VStack {
HStack {
Text("\(Date())")
Spacer()
if !searchWord.isEmpty {
Button("Clear") {
}
}
}
HStack {
Image(systemName: "magnifyingglass")
TextField("Search words", text: $searchWord)
}
}
.overlay {
Capsule().fill(.clear)
}
// End of the search bar
// Australian flag
Image("image2")
Text("G'day!")
Text("Click the button below!")
HStack {
Button(action: {
}) {
Text("Score") }
Button(action: {
}) {
Text("Word List")
}
Button(action: {
}) {
Text("Start")
}
}
}
}
}
}
Подробнее здесь: https://stackoverflow.com/questions/778 ... d-shows-up
Мобильная версия