This mobile app, built with SwiftUI, leverages the Rick and Morty API to fetch and display information about characters, locations, and episodes from the beloved animated series. It utilizes the SDWebImage library for efficient image loading and caching.
- Character Listing: Browse through a comprehensive list of Rick and Morty characters, including their names, statuses, species, genders, and images.
- Filtering: Filter characters based on their status (Alive, Dead, Unknown).
- Favoriting: Mark your favorite characters for quick and easy access. (Optional, functionality not explicitly shown in provided code)
- Episode Display: View details about individual episodes, including their names, air dates, and episode codes.
- Location Exploration: Discover details about various locations featured in the series, such as their names and URLs for further exploration.
- SwiftUI: Apple's modern UI framework for building declarative and reactive user interfaces.
- Rick and Morty API: The official API providing data about characters, locations, and episodes. (https://rickandmortyapi.com/)
- SDWebImage: A popular Swift library for asynchronous image downloading, caching, and management. (https://github.com/SDWebImage/SDWebImageSwiftUI)
- Clone the Repository: Use git clone
https://github.com/huss3n/rick-and-morty-app.git
to clone this repository. - Install Dependencies: Run pod install in your terminal to install the required CocoaPods dependency (SDWebImage).
- Run the App: Open the project in Xcode and run the app on your desired iOS device or simulator.
- Saving Favorites (Implementation not included in provided code):
- The current implementation doesn't explicitly show saving favorites. I will be adding this soon and will use SwiftData to save the favorites.
Feel free to fork this repository, make changes, and submit pull requests to improve the app. We welcome contributions for bug fixes, feature enhancements, and code improvements.