Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assessment

What the app does

A character browser backed by the Rick and Morty API.

  • On launch, characters load into a table view
  • Each row shows: avatar, name, status (with a colored indicator), species, and creation date
  • Scrolling near the bottom loads the next page
  • Cached characters show on later launches (even before the network responds)
  • On network failure, the user sees an error and can retry
  • Reset clears the cache and reloads from page 1

Task

The working implementation lives in a single ViewController.swift.

Refactor this code. Behavior above must stay the same.

Main goal

Extract a ViewModel (or equivalent): move loading, pagination, caching, and error/retry out of the view controller. ViewController should focus on UI only.

Time

60 minutes

Notes

  • You can use any tools and libraries (including Google), but no AI-assisted tools
  • The app must compile and keep the behavior described above

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages