HomeiOS Developmentios - Easy methods to cease the view from shifting up when...

ios – Easy methods to cease the view from shifting up when the keyboard reveals up


Hi I’m struggling to cease the view within the pic beneath from shifting up when the keyboard seems on the display. I’ve tried some approaches that I discovered right here comparable to including GeometryReader or ignoresafearea however they didn’t work.

Any hints could be appreciated. Cheers.

    var physique: some View {
        ZStack {
            // Set the wallpaper
            Picture("image1")
                .opacity(0.9)
  
                ScrollView {
                    VStack {
                        HStack {
                            Textual content(getTodayDateAndDay())
                            Spacer()
                            if !viewModel.searchWord.isEmpty {
                                Button("Clear") {
                                }}}
                        HStack {
                            Picture(systemName: "magnifyingglass")
                            TextField("Search phrases", textual content: $viewModel.searchWord) 
                                    }}   
                        .overlay { Capsule() }
                        // Finish of the search bar
                        // Australian flag
                        Picture("image2") 
                        Textual content("G'day!")
                        Textual content("Click on the button beneath!")   
                        HStack {
                            Button(motion: { seeScore = true
                            }) {
                                Textual content("Rating") }
                            Button(motion: { seeWords = true
                            }) {
                                Textual content("Phrase Record") }
                        Button(motion: { chooseNumWords = true
                            }) {
                            Textual content("Begin")

[![The title Page Pic]
[1]: https://i.stack.imgur.com/A6oBc.png

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments