Giter Club home page Giter Club logo

Comments (13)

ay42 avatar ay42 commented on August 26, 2024

@nobanhasan2 do you have a NavigationView one level above grid?

var body: some View {
    NavigationView {
        Grid(...)
    }
}

from swiftui-grid.

ay42 avatar ay42 commented on August 26, 2024

@nobanhasan2 I just added a working example with #79.
Closing this for now.

from swiftui-grid.

nobanhasan2 avatar nobanhasan2 commented on August 26, 2024

@ay42 please see this screenshot
https://drive.google.com/open?id=1WqTVLlI4AMMxioBADtkNLrH4K-At6-lY

from swiftui-grid.

ay42 avatar ay42 commented on August 26, 2024

@nobanhasan2 ok. I'm not sure what is not working for you there. Can you clarify?

from swiftui-grid.

nobanhasan2 avatar nobanhasan2 commented on August 26, 2024

Here is the full code. I don't know why its overlay on my image and also in text.
`var body: some View {
ZStack {
Color(0xedeef0)
.edgesIgnoringSafeArea(.all)
NavigationView{
VStack {
SearchBookBar(text: $viewModel.searchText)

                                  Grid(viewModel.items){ item in
                                    NavigationLink(destination: BookDetail(displayData: item)){
                                        SearchBookCell(displayData: item)
                                        }
                                   }
                                  .gridStyle(
                                    ModularGridStyle(columns: 2, rows: .fixed(200))
                                       ).animation(.easeInOut)
                 
                      
                          }
        }
        
           }`

from swiftui-grid.

ay42 avatar ay42 commented on August 26, 2024

@nobanhasan2 you mean where is the blue square should be an image rendered?

from swiftui-grid.

ay42 avatar ay42 commented on August 26, 2024

@nobanhasan2 my guess is you are missing this line.

from swiftui-grid.

nobanhasan2 avatar nobanhasan2 commented on August 26, 2024

@ay42 Yes.. i can solve the image render with that line but there Text is also rendered . Text has no function like renderingMode . How can i solve this?

from swiftui-grid.

ay42 avatar ay42 commented on August 26, 2024

@nobanhasan2 for text color change .accentColor(...), .foregroundColor(...) ? Is that what you are trying to do just a color change?

from swiftui-grid.

nobanhasan2 avatar nobanhasan2 commented on August 26, 2024

i didn't do any color change. Everything was fine without NavigationLink

from swiftui-grid.

ay42 avatar ay42 commented on August 26, 2024

@nobanhasan2 navigation link makes it a button and it's rendered with system accent color

from swiftui-grid.

nobanhasan2 avatar nobanhasan2 commented on August 26, 2024

Ohhh now i see. Thank you so much bro for your help ^_^

from swiftui-grid.

ay42 avatar ay42 commented on August 26, 2024

@nobanhasan2 np

from swiftui-grid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.