title: display Github data using "Github API" (SwiftUI)
body: <p><strong>task</strong> to be done: Make your github data appear on the ContentView screen using the Github API.</p>
  <pre><code>struct TaskEntry: Codable  {
      let id: Int
      let title: String
  }
  </code></pre>
  <pre><code>    @State var results = [TaskEntry]()
      
      func loadData() {
              guard let url = URL(string: &quot;https://jsonplaceholder.typicode.com/todos&quot;) else {
                  print(&quot;Invalid URL&quot;)
                  return
              }
              let request = URLRequest(url: url)
  
              URLSession.shared.dataTask(with: request) { data, response, error in
                  if let data = data {
                      if let response = try? JSONDecoder().decode([TaskEntry].self, from: data) {
                          DispatchQueue.main.async {
                              self.results = response
                          }
                          return
                      }
                  }
              }.resume()
          }
  </code></pre>
  <p>the above solution did not help in performing this task </p>
  <p><a href="https://docs.github.com/en/rest/users/users#get-a-user" rel="nofollow noreferrer">i didn't understand how to use these docs</a></p>
  <p>Thank you for attention.
  help those who know...</p>